Merge pull request #59 from tmearnest/master

fixed inverted conditional
This commit is contained in:
Olivier Mangin 2017-05-09 11:56:35 -04:00 committed by GitHub
commit bbf3d3d0c8

View File

@ -51,9 +51,9 @@ def system_path(path):
def _open(path, mode):
if 'b' in mode:
return open(system_path(path), mode, encoding='utf-8')
else:
return open(system_path(path), mode)
else:
return open(system_path(path), mode, encoding='utf-8')
def check_file(path, fail=True):