py3 compatibility fixes

This commit is contained in:
Yorik van Havre
2018-10-27 16:04:51 -03:00
parent b6712e264a
commit 7fabfde0ef
18 changed files with 19 additions and 18 deletions

View File

@@ -290,7 +290,7 @@ GCODE_FOOTER = "M30"
linenr = 0 # variable has to be global because it is used by linenumberify and export
if open.__module__ == '__builtin__':
if open.__module__ in ['__builtin__','io']:
pythonopen = open