diff tests/test-import.t @ 29485:6a98f9408a50

py3: make files use absolute_import and print_function This patch includes addition of absolute_import and print_function to the files where they are missing. The modern importing conventions are also followed.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 03 Jul 2016 22:28:24 +0530
parents fe458d078ed7
children 50f2966f86ca
line wrap: on
line diff
--- a/tests/test-import.t	Fri Jul 01 19:17:45 2016 -0700
+++ b/tests/test-import.t	Sun Jul 03 22:28:24 2016 +0530
@@ -53,7 +53,8 @@
 regardless of the commit message in the patch)
 
   $ cat > dummypatch.py <<EOF
-  > print 'patching file a'
+  > from __future__ import print_function
+  > print('patching file a')
   > file('a', 'wb').write('line2\n')
   > EOF
   $ hg clone -r0 a b