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 c653369ec52375b5679875bddb2b77acbf7c8a05..c7245c47be9685707057dfeb4ec9f501f0d2946f 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