mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-14 21:38:17 +00:00
use print function over print statement in ./misc/ directory
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
|
||||
# ./check-umids.py src
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import sys, re, os
|
||||
|
||||
ok = True
|
||||
@ -20,13 +22,13 @@ for starting_point in sys.argv[1:]:
|
||||
umid = mo.group(1)
|
||||
if umid in umids:
|
||||
oldfn, oldlineno = umids[umid]
|
||||
print "%s:%d: duplicate umid '%s'" % (fn, lineno, umid)
|
||||
print "%s:%d: first used here" % (oldfn, oldlineno)
|
||||
print("%s:%d: duplicate umid '%s'" % (fn, lineno, umid))
|
||||
print("%s:%d: first used here" % (oldfn, oldlineno))
|
||||
ok = False
|
||||
umids[umid] = (fn,lineno)
|
||||
|
||||
if ok:
|
||||
print "all umids are unique"
|
||||
print("all umids are unique")
|
||||
else:
|
||||
print "some umids were duplicates"
|
||||
print("some umids were duplicates")
|
||||
sys.exit(1)
|
||||
|
Reference in New Issue
Block a user