diff tests/test-filelog.py @ 28744:6537e14301ef

py3: use print_function in test-filelog.py
author Robert Stanca <robert.stanca7@gmail.com>
date Mon, 04 Apr 2016 00:17:11 +0300
parents 83373fc2b287
children efc739551c17
line wrap: on
line diff
--- a/tests/test-filelog.py	Sun Apr 03 17:10:12 2016 +0300
+++ b/tests/test-filelog.py	Mon Apr 04 00:17:11 2016 +0300
@@ -2,7 +2,7 @@
 """
 Tests the behavior of filelog w.r.t. data starting with '\1\n'
 """
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 from mercurial import (
     hg,
     ui,
@@ -37,7 +37,7 @@
             lock.release()
 
 def error(text):
-    print 'ERROR: ' + text
+    print('ERROR: ' + text)
 
 textwith = '\1\nfoo'
 without = 'foo'
@@ -59,4 +59,4 @@
 if fl.size(1) != len(textwith):
     error('filelog.size for a renaming + data starting with \\1\\n')
 
-print 'OK.'
+print('OK.')