make runnable with python3

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-05-30 03:15:08 +00:00
parent 93e5c5de43
commit 40dfc6acd4

View File

@@ -125,12 +125,12 @@ def main():
def writeFile(filename, stub, values):
if os.path.exists(filename):
print "'%s' already exists. Exiting." % filename
print("'%s' already exists. Exiting." % filename)
sys.exit(1)
output = open(filename, 'w')
output.write(stub % values)
output.close()
print "Wrote", filename
print("Wrote %s" % filename)