Patch #487455: make types.StringTypes a tuple.

This commit is contained in:
Martin v. Löwis 2001-12-02 12:08:06 +00:00
parent 44ddbde3ab
commit 8b6bd42e08

View file

@ -26,9 +26,9 @@ except NameError:
StringType = str StringType = str
try: try:
UnicodeType = unicode UnicodeType = unicode
StringTypes = [StringType, UnicodeType] StringTypes = (StringType, UnicodeType)
except NameError: except NameError:
StringTypes = [StringType] StringTypes = (StringType,)
BufferType = type(buffer('')) BufferType = type(buffer(''))