Convert print statements to function calls in Tools/.

This commit is contained in:
Collin Winter 2007-08-03 17:06:41 +00:00
parent e5d0e8431f
commit 6afaeb757a
66 changed files with 777 additions and 779 deletions

View file

@ -22,8 +22,8 @@ def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "qv")
except getopt.error as msg:
print msg
print "usage:", sys.argv[0], "[-qv] ... [rooturl] ..."
print(msg)
print("usage:", sys.argv[0], "[-qv] ... [rooturl] ...")
return 2
for o, a in opts:
if o == "-q":
@ -36,9 +36,9 @@ def main():
('User-agent', 'websucker/%s' % __version__),
]
for arg in args:
print "Adding root", arg
print("Adding root", arg)
c.addroot(arg)
print "Run..."
print("Run...")
c.run()
class Sucker(webchecker.Checker):
@ -116,7 +116,7 @@ def makedirs(dir):
return
head, tail = os.path.split(dir)
if not tail:
print "Huh? Don't know how to make dir", dir
print("Huh? Don't know how to make dir", dir)
return
makedirs(head)
os.mkdir(dir, 0o777)