fixed inverted conditional
This commit is contained in:
parent
70e1169fe7
commit
d465c35e89
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user