Skip to content

Commit

Permalink
contrib/fast-import/import-zips.py: fix broken error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Aguilar authored and Junio C Hamano committed Feb 24, 2013
1 parent dd3a4ad commit 61a7aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/fast-import/import-zips.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

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>...'
Expand Down

0 comments on commit 61a7aac

Please sign in to comment.