py3 compatibility fixes
This commit is contained in:
@@ -35,7 +35,7 @@ now = datetime.datetime.now()
|
||||
|
||||
|
||||
# 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