Use print() function in both Python 2 and Python 3 (#12467)

The current code is a syntax error in Python 3.

The proposed code works as expected in both Python 2 and Python 3.
This commit is contained in:
Christian Clauss
2022-05-26 18:24:59 +02:00
committed by GitHub
parent c3a4914b22
commit c2eee6f743

View File

@@ -53,8 +53,8 @@ def main():
for name, targetFiles in targets.iteritems():
errors = checkForCompilerErrors(targetFiles)
if errors:
print "Compiler errors when building %s" % name
print errors
print("Compiler errors when building %s" % name)
print(errors)
for name, targetFiles in targets.iteritems():
compile("%s.compiled.js" % name, targets[name])