summaryrefslogtreecommitdiffstats
path: root/Tools/webchecker/websucker.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-23 11:45:20 (GMT)
committerGeorg Brandl <georg@python.org>2008-06-23 11:45:20 (GMT)
commit7d84055e253f96437f1681faa3614ecd204b0a49 (patch)
tree4b131c8058b263f119a3325bbd4e44ed55bff9f8 /Tools/webchecker/websucker.py
parent029986af249f71a5603110a0f5f0b18d0f335828 (diff)
downloadcpython-7d84055e253f96437f1681faa3614ecd204b0a49.zip
cpython-7d84055e253f96437f1681faa3614ecd204b0a49.tar.gz
cpython-7d84055e253f96437f1681faa3614ecd204b0a49.tar.bz2
More old urllib usage.
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 e84238e..3bbdec3 100755
--- a/Tools/webchecker/websucker.py
+++ b/Tools/webchecker/websucker.py
@@ -6,8 +6,8 @@ __version__ = "$Revision$"
import os
import sys
-import urllib
import getopt
+import urllib.parse
import webchecker
@@ -87,11 +87,11 @@ class Sucker(webchecker.Checker):
self.message("didn't save %s: %s", path, str(msg))
def savefilename(self, url):
- type, rest = urllib.splittype(url)
- host, path = urllib.splithost(rest)
+ type, rest = urllib.parse.splittype(url)
+ host, path = urllib.parse.splithost(rest)
path = path.lstrip("/")
- user, host = urllib.splituser(host)
- host, port = urllib.splitnport(host)
+ user, host = urllib.parse.splituser(host)
+ host, port = urllib.parse.splitnport(host)
host = host.lower()
if not path or path[-1] == "/":
path = path + "index.html"