make it work with both python2 and python3

I ran 2to3, fixed up the output a tiny bit, and fixed the C module as
well.  I smoke tested with both versions of Python but didn't use it in
anger yet.

Fix #29
This commit is contained in:
Tom Tromey
2015-05-19 09:44:09 -06:00
parent 63baaf9c82
commit 22bdecb10d
8 changed files with 65 additions and 24 deletions

View File

@@ -46,10 +46,10 @@ def notify_bug(bugno):
return
if not (bugno in bugs):
return
print "################"
print bugs[bugno]
print _warning % bugno
print ""
print "You can use 'set gui mention-missing off' to disable this message."
print "################"
print("################")
print(bugs[bugno])
print(_warning % bugno)
print("")
print("You can use 'set gui mention-missing off' to disable this message.")
print("################")
del bugs[bugno]