mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
Convert print statements to function calls in Tools/.
This commit is contained in:
parent
e5d0e8431f
commit
6afaeb757a
66 changed files with 777 additions and 779 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue