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():
|
for name, targetFiles in targets.iteritems():
|
||||||
errors = checkForCompilerErrors(targetFiles)
|
errors = checkForCompilerErrors(targetFiles)
|
||||||
if errors:
|
if errors:
|
||||||
print "Compiler errors when building %s" % name
|
print("Compiler errors when building %s" % name)
|
||||||
print errors
|
print(errors)
|
||||||
|
|
||||||
for name, targetFiles in targets.iteritems():
|
for name, targetFiles in targets.iteritems():
|
||||||
compile("%s.compiled.js" % name, targets[name])
|
compile("%s.compiled.js" % name, targets[name])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user