From: David Aguilar Date: Sun, 24 Feb 2013 00:50:19 +0000 (-0800) Subject: contrib/fast-import/import-zips.py: fix broken error message X-Git-Tag: v1.8.2.1~24^2~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/61a7aaccf40a65840f5017901c8f4c19253c395a contrib/fast-import/import-zips.py: fix broken error message The 'sys' module is not imported but all of the bits we want from it are. Adjust the script to not fail when run on old Python versions and fix the inconsistent use of tabs. Signed-off-by: David Aguilar Signed-off-by: Junio C Hamano --- diff --git a/contrib/fast-import/import-zips.py b/contrib/fast-import/import-zips.py index 8f2923d359..1936a730b2 100755 --- a/contrib/fast-import/import-zips.py +++ b/contrib/fast-import/import-zips.py @@ -15,8 +15,8 @@ if hexversion < 0x01060000: # The limiter is the zipfile module - sys.stderr.write("import-zips.py: requires Python 1.6.0 or later.\n") - sys.exit(1) + stderr.write("import-zips.py: requires Python 1.6.0 or later.\n") + exit(1) if len(argv) < 2: print 'usage:', argv[0], '...'