Skip to content

Commit

Permalink
svn-fe: allow svnrdump_sim.py to run with Python 3
Browse files Browse the repository at this point in the history
The changes to allow this script to run with Python 3 are minimal and do
not affect its functionality on the versions of Python 2 that are
already supported (2.4 onwards).

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
John Keeping authored and Junio C Hamano committed Jan 25, 2013
1 parent 62c814b commit cadbf5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/svn-fe/svnrdump_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def getrevlimit():
var = 'SVNRMAX'
if os.environ.has_key(var):
if var in os.environ:
return os.environ[var]
return None

Expand Down Expand Up @@ -44,7 +44,7 @@ def writedump(url, lower, upper):

if __name__ == "__main__":
if not (len(sys.argv) in (3, 4, 5)):
print "usage: %s dump URL -rLOWER:UPPER"
print("usage: %s dump URL -rLOWER:UPPER")
sys.exit(1)
if not sys.argv[1] == 'dump': raise NotImplementedError('only "dump" is suppported.')
url = sys.argv[2]
Expand Down

0 comments on commit cadbf5c

Please sign in to comment.