py3 compatibility fixes
This commit is contained in:
@@ -44,7 +44,7 @@ else:
|
||||
|
||||
|
||||
# to distinguish python built-in open function from the one declared below
|
||||
if open.__module__ == '__builtin__':
|
||||
if open.__module__ in ['__builtin__','io']:
|
||||
pythonopen = open
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user