]> Kevux Git Server - rit/commitdiff
contrib/fast-import/import-zips.py: fix broken error message
authorDavid Aguilar <davvid@gmail.com>
Sun, 24 Feb 2013 00:50:19 +0000 (16:50 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Feb 2013 21:31:08 +0000 (13:31 -0800)
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 <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/import-zips.py

index 8f2923d..1936a73 100755 (executable)
@@ -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], '<zipfile>...'