diff options
author | Guido van Rossum <guido@python.org> | 2007-08-03 19:19:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-03 19:19:24 (GMT) |
commit | c0f2d2d345d5fe97f81554d49b273b3feb0e37ae (patch) | |
tree | f1e57383a03f8723af8ad68dc831732ad9000dbb /Lib/cookielib.py | |
parent | 15863ea07ab4eed2d91ce55b274245e8d420723d (diff) | |
download | cpython-c0f2d2d345d5fe97f81554d49b273b3feb0e37ae.zip cpython-c0f2d2d345d5fe97f81554d49b273b3feb0e37ae.tar.gz cpython-c0f2d2d345d5fe97f81554d49b273b3feb0e37ae.tar.bz2 |
SF patch# 1762940 by Joe Gregorio.
Fix test_cookielib and test_urllib2.
(The changes to urllib make urllib.quote() work correctly for Unicode
strings; but they don't fix test_urllib.)
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r-- | Lib/cookielib.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py index 7c794d4..313912e 100644 --- a/Lib/cookielib.py +++ b/Lib/cookielib.py @@ -644,8 +644,6 @@ def escape_path(path): # And here, kind of: draft-fielding-uri-rfc2396bis-03 # (And in draft IRI specification: draft-duerst-iri-05) # (And here, for new URI schemes: RFC 2718) - if isinstance(path, str): - path = path.encode("utf-8") path = urllib.quote(path, HTTP_PATH_SAFE) path = ESCAPED_CHAR_RE.sub(uppercase_escaped_char, path) return path |