Fix Python 3 compatibility bug
parent
eb89998dc0
commit
696343196a
|
@ -18,7 +18,7 @@ from codecs import open
|
||||||
# Get the requirements list for the current version of Python
|
# Get the requirements list for the current version of Python
|
||||||
req_file='../requirements.txt'
|
req_file='../requirements.txt'
|
||||||
|
|
||||||
with open(req_file) as reqf:
|
with open(req_file, 'r') as reqf:
|
||||||
if sys.version_info[0] >= 3:
|
if sys.version_info[0] >= 3:
|
||||||
required = reqf.read().splitlines()
|
required = reqf.read().splitlines()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue