From 61a7aaccf40a65840f5017901c8f4c19253c395a Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sat, 23 Feb 2013 16:50:19 -0800 Subject: [PATCH] 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 --- contrib/fast-import/import-zips.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ from zipfile import ZipFile 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], '...' -- 2.11.4.GIT