File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11sudo : required
22dist : trusty
33language : python
4- python :
5- - " 2.7"
6- - " 3.5"
74matrix :
85 include :
96 - python : 2.7
@@ -50,7 +47,6 @@ install:
5047 pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.1.0-cp35-cp35m-linux_x86_64.whl;
5148 fi
5249 - pip install keras
53- # Run setup
5450 - conda install libgcc
5551 - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/travis/miniconda/envs/test-environment/lib
5652
Original file line number Diff line number Diff line change 1414
1515config_file = join (dirname (__file__ ), 'config.ini' )
1616parser = cp .ConfigParser ()
17- with open (config_file , mode = 'rt' ) as f :
18- parser .read_file (f )
17+ if sys .version_info >= (3 , 0 ):
18+ with open (config_file , mode = 'rt' ) as f :
19+ parser .read_file (f )
20+ else :
21+ parser .read (config_file )
1922
2023# Generate config dictionary
2124config_dict = dict ()
You can’t perform that action at this time.
0 commit comments