Fix T61332: Python3 syntax errors

This commit is contained in:
2019-02-09 13:07:34 +11:00
committed by Campbell Barton
parent 191b8951f7
commit 7262ac6202
2 changed files with 7 additions and 7 deletions

View File

@@ -39,8 +39,8 @@ defs = """
SPACEICONMAX
"""
print '\tmod = PyModule_New("dummy");'
print '\tPyModule_AddObject(submodule, "key", mod);'
print('\tmod = PyModule_New("dummy");')
print('\tPyModule_AddObject(submodule, "key", mod);')
for d in defs.split('\n'):
@@ -60,4 +60,4 @@ for d in defs.split('\n'):
val = w[0]
py_val = w[0]
print '\tPyModule_AddObject(mod, "%s", PyLong_FromSize_t(%s));' % (val, py_val)
print('\tPyModule_AddObject(mod, "%s", PyLong_FromSize_t(%s));' % (val, py_val))