Mercurial > public > mercurial-scm > hg
diff tests/generate-working-copy-states.py @ 28725:3cf1995dbdd5
py3: use print_function in generate-working-copy-states.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Sat, 02 Apr 2016 17:36:59 +0300 |
parents | a327a24acfea |
children | bd872f64a8ba |
line wrap: on
line diff
--- 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