summaryrefslogtreecommitdiffstats
path: root/Lib/cookielib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-02-07 14:16:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-02-07 14:16:21 (GMT)
commitf715366f23f47832a4b9914c54d5a63b19f17eba (patch)
treeee5f60f4631f6fdad98711dc86ad128724effb11 /Lib/cookielib.py
parenta164574937d6ed32060ad34ea04913ca10741394 (diff)
downloadcpython-f715366f23f47832a4b9914c54d5a63b19f17eba.zip
cpython-f715366f23f47832a4b9914c54d5a63b19f17eba.tar.gz
cpython-f715366f23f47832a4b9914c54d5a63b19f17eba.tar.bz2
Reduce the usage of the types module.
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r--Lib/cookielib.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py
index 268cc20..7fec858 100644
--- a/Lib/cookielib.py
+++ b/Lib/cookielib.py
@@ -26,7 +26,6 @@ are available from http://wwwsearch.sf.net/):
"""
import sys, re, urlparse, copy, time, urllib, logging
-from types import StringTypes
try:
import threading as _threading
except ImportError:
@@ -359,7 +358,7 @@ def split_header_words(header_values):
[[('Basic', None), ('realm', '"foobar"')]]
"""
- assert type(header_values) not in StringTypes
+ assert not isinstance(header_values, basestring)
result = []
for text in header_values:
orig_text = text