[Python-checkins] python/dist/src/Lib cookielib.py,1.3,1.4
nnorwitz at users.sourceforge.net
nnorwitz at users.sourceforge.net
Sun Oct 17 18:23:55 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32171/Lib
Modified Files:
cookielib.py
Log Message:
Remove unnecessary imports
Index: cookielib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cookielib.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cookielib.py 10 Jul 2004 18:32:12 -0000 1.3
+++ cookielib.py 17 Oct 2004 16:23:52 -0000 1.4
@@ -25,7 +25,7 @@
"""
-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 @@
# 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)
More information about the Python-checkins
mailing list