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 <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
David Aguilar committed
Feb 23, 2013 at 16:50 UTC
61a7aaccf40a65840f5017901c8f4c19253c395a
1 file changed
+2
-2
contrib/fast-import/import-zips.py
+2
-2
@@ -15,8 +15,8 @@ from zipfile import ZipFile
15
16
if hexversion < 0x01060000:
17
# The limiter is the zipfile module
18
- sys.stderr.write("import-zips.py: requires Python 1.6.0 or later.\n")
19
- sys.exit(1)
18
+ stderr.write("import-zips.py: requires Python 1.6.0 or later.\n")
19
+ exit(1)
20
21
if len(argv) < 2:
22
print 'usage:', argv[0], '<zipfile>...'