Fix python 2 print() statement.
authorCarl Hetherington <cth@carlh.net>
Mon, 14 Oct 2019 23:01:22 +0000 (01:01 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Oct 2019 23:01:22 +0000 (01:01 +0200)
wscript

diff --git a/wscript b/wscript
index c653369..c7245c4 100644 (file)
--- a/wscript
+++ b/wscript
@@ -595,8 +595,8 @@ def dist(ctx):
     r = git_revision()
     if r is not None:
         f = open('.git_revision', 'w')
-        print >>f,r
-    f.close()
+        print(r, file=f)
+        f.close()
 
     ctx.excl = """
                TODO core *~ src/wx/*~ src/lib/*~ builds/*~ doc/manual/*~ src/tools/*~ *.pyc .waf* build .git