Mercurial > hg
diff contrib/fixpax.py @ 28354:00f317788d33
fixpax: use absolute_import and print_function
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 06 Mar 2016 03:10:17 +0530 |
parents | 58eb1c5bba58 |
children |
line wrap: on
line diff
--- 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)