--- a/contrib/fixpax.py Sun Mar 06 03:06:09 2016 +0530
+++ b/contrib/fixpax.py Sun Mar 06 03:10:17 2016 +0530
@@ -11,7 +11,10 @@
*.mpkg/Contents/Packages/*.pkg/Contents/Archive.pax.gz
"""
-import sys, os, gzip
+from __future__ import absolute_import, print_function
+import gzip
+import os
+import sys
def fixpax(iname, oname):
i = gzip.GzipFile(iname)
@@ -55,7 +58,7 @@
if __name__ == '__main__':
for iname in sys.argv[1:]:
- print 'fixing file ownership in %s' % iname
+ print('fixing file ownership in %s' % iname)
oname = sys.argv[1] + '.tmp'
fixpax(iname, oname)
os.rename(oname, iname)
--- a/tests/test-check-py3-compat.t Sun Mar 06 03:06:09 2016 +0530
+++ b/tests/test-check-py3-compat.t Sun Mar 06 03:10:17 2016 +0530
@@ -6,8 +6,6 @@
contrib/check-code.py not using absolute_import
contrib/check-code.py requires print_function
contrib/debugshell.py not using absolute_import
- contrib/fixpax.py not using absolute_import
- contrib/fixpax.py requires print_function
contrib/hgclient.py not using absolute_import
contrib/hgclient.py requires print_function
contrib/hgfixes/fix_bytes.py not using absolute_import