summaryrefslogtreecommitdiffstats
path: root/Tools/webchecker/websucker.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/webchecker/websucker.py')
-rwxr-xr-xTools/webchecker/websucker.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/webchecker/websucker.py b/Tools/webchecker/websucker.py
index 12be86e..e84238e 100755
--- a/Tools/webchecker/websucker.py
+++ b/Tools/webchecker/websucker.py
@@ -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)