Skip to content

Commit 61a7aac

Browse files
davvidgitster
authored andcommitted
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>
1 parent dd3a4ad commit 61a7aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/fast-import/import-zips.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
if hexversion < 0x01060000:
1717
# 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)
2020

2121
if len(argv) < 2:
2222
print 'usage:', argv[0], '<zipfile>...'

0 commit comments

Comments
 (0)