Reduce the usage of the types module.

This commit is contained in:
Raymond Hettinger 2005-02-07 14:16:21 +00:00
parent a164574937
commit f715366f23
8 changed files with 64 additions and 68 deletions

View file

@ -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