Skip to content

Commit cadbf5c

Browse files
johnkeepinggitster
authored andcommitted
svn-fe: allow svnrdump_sim.py to run with Python 3
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>
1 parent 62c814b commit cadbf5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contrib/svn-fe/svnrdump_sim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
def getrevlimit():
1616
var = 'SVNRMAX'
17-
if os.environ.has_key(var):
17+
if var in os.environ:
1818
return os.environ[var]
1919
return None
2020

@@ -44,7 +44,7 @@ def writedump(url, lower, upper):
4444

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

0 commit comments

Comments
 (0)