summaryrefslogtreecommitdiff
path: root/contrib/fast-import/import-zips.py
diff options
context:
space:
mode:
authorLibravatar David Aguilar <davvid@gmail.com>2013-02-23 16:50:19 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-02-24 13:31:08 -0800
commit61a7aaccf40a65840f5017901c8f4c19253c395a (patch)
tree856b39a6c271bbeb42f76f3640163a1c051c8d8d /contrib/fast-import/import-zips.py
parentcontrib/fast-import: use a lowercase "usage:" string (diff)
downloadtgif-61a7aaccf40a65840f5017901c8f4c19253c395a.tar.xz
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>
Diffstat (limited to 'contrib/fast-import/import-zips.py')
-rwxr-xr-xcontrib/fast-import/import-zips.py4
1 files 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], '<zipfile>...'