diff options
author | Georg Brandl <georg@python.org> | 2008-06-23 11:45:20 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-06-23 11:45:20 (GMT) |
commit | 7d84055e253f96437f1681faa3614ecd204b0a49 (patch) | |
tree | 4b131c8058b263f119a3325bbd4e44ed55bff9f8 /Tools/faqwiz | |
parent | 029986af249f71a5603110a0f5f0b18d0f335828 (diff) | |
download | cpython-7d84055e253f96437f1681faa3614ecd204b0a49.zip cpython-7d84055e253f96437f1681faa3614ecd204b0a49.tar.gz cpython-7d84055e253f96437f1681faa3614ecd204b0a49.tar.bz2 |
More old urllib usage.
Diffstat (limited to 'Tools/faqwiz')
-rw-r--r-- | Tools/faqwiz/faqwiz.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/faqwiz/faqwiz.py b/Tools/faqwiz/faqwiz.py index 260e1aa..b9ab65d 100644 --- a/Tools/faqwiz/faqwiz.py +++ b/Tools/faqwiz/faqwiz.py @@ -138,8 +138,8 @@ def load_my_cookie(): value = cookies[COOKIE_NAME] except KeyError: return {} - import urllib - value = urllib.unquote(value) + import urllib.parse + value = urllib.parse.unquote(value) words = value.split('/') while len(words) < 3: words.append('') @@ -153,8 +153,8 @@ def load_my_cookie(): def send_my_cookie(ui): name = COOKIE_NAME value = "%s/%s/%s" % (ui.author, ui.email, ui.password) - import urllib - value = urllib.quote(value) + import urllib.parse + value = urllib.parse.quote(value) then = now + COOKIE_LIFETIME gmt = time.gmtime(then) path = os.environ.get('SCRIPT_NAME', '/cgi-bin/') |