tests/generate-working-copy-states.py
changeset 28725 3cf1995dbdd5
parent 27295 a327a24acfea
child 32291 bd872f64a8ba
--- a/tests/generate-working-copy-states.py	Sat Apr 02 17:35:02 2016 +0300
+++ b/tests/generate-working-copy-states.py	Sat Apr 02 17:36:59 2016 +0300
@@ -29,7 +29,7 @@
 # $ hg forget *_*_*-untracked
 # $ rm *_*_missing-*
 
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 import os
 import sys
@@ -66,7 +66,7 @@
 content = []
 for filename, states in combinations:
     if target == 'filelist':
-        print filename
+        print(filename)
     elif target == 'state':
         if depth == 'wc':
             # Make sure there is content so the file gets written and can be
@@ -75,7 +75,7 @@
         else:
             content.append((filename, states[int(depth) - 1]))
     else:
-        print >> sys.stderr, "unknown target:", target
+        print("unknown target:", target, file=sys.stderr)
         sys.exit(1)
 
 # write actual content