py3 compatibility fixes

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

View File

@@ -55,7 +55,7 @@ AXIS = 'X','Y','Z','A','B' #OpenSBP always puts multiaxis move parameters in th
SPEEDS = 'XY','Z','A','B'
# to distinguish python built-in open function from the one declared below
if open.__module__ == '__builtin__':
if open.__module__ in ['__builtin__','io']:
pythonopen = open