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