diff --git a/contrib/fixpax.py b/contrib/fixpax.py --- a/contrib/fixpax.py +++ b/contrib/fixpax.py @@ -11,7 +11,10 @@ Suitable for fixing files bdist_mpkg out *.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 @@ def fixpax(iname, oname): 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) diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -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