changeset 33872:5d9890d8ca77

undumprevlog: update to valid Python 3 syntax I didn't do anything to ensure correctness here, just enough to avoid tracebacks in the import checker, which uses the native ast module to try and parse all our Python files.
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 12:58:51 -0400
parents 9e8b01d0654f
children 904bc1dc2694
files contrib/undumprevlog
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/undumprevlog	Wed Aug 23 01:08:09 2017 +0000
+++ b/contrib/undumprevlog	Tue Aug 22 12:58:51 2017 -0400
@@ -3,7 +3,7 @@
 # $ hg init
 # $ undumprevlog < repo.dump
 
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 import sys
 from mercurial import (
@@ -27,7 +27,7 @@
     if l.startswith("file:"):
         f = l[6:-1]
         r = revlog.revlog(opener, f)
-        print f
+        print(f)
     elif l.startswith("node:"):
         n = node.bin(l[6:-1])
     elif l.startswith("linkrev:"):