forked from loafle/openapi-generator-original
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:
parent
c3a4914b22
commit
c2eee6f743
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user