summaryrefslogtreecommitdiffstats
path: root/Lib/cookielib.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2004-10-17 16:23:52 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2004-10-17 16:23:52 (GMT)
commit2fa0b9d0bd7a6d2f72fd9eef51b720f59566e154 (patch)
treec8375ba7aef483e6b897520894c2261e72b1dc98 /Lib/cookielib.py
parent15aaacc93edc7f49257554c89c9c05b675a0503e (diff)
downloadcpython-2fa0b9d0bd7a6d2f72fd9eef51b720f59566e154.zip
cpython-2fa0b9d0bd7a6d2f72fd9eef51b720f59566e154.tar.gz
cpython-2fa0b9d0bd7a6d2f72fd9eef51b720f59566e154.tar.bz2
Remove unnecessary imports
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r--Lib/cookielib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py
index a5e84e3..a125b21 100644
--- a/Lib/cookielib.py
+++ b/Lib/cookielib.py
@@ -25,7 +25,7 @@ are available from http://wwwsearch.sf.net/):
"""
-import sys, re, urlparse, copy, time, struct, urllib, types, logging
+import sys, re, urlparse, copy, time, urllib, logging
from types import StringTypes
try:
import threading as _threading
@@ -643,7 +643,7 @@ 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, types.UnicodeType):
+ if isinstance(path, unicode):
path = path.encode("utf-8")
path = urllib.quote(path, HTTP_PATH_SAFE)
path = ESCAPED_CHAR_RE.sub(uppercase_escaped_char, path)