From: Martin v. Löwis Date: Sun, 2 Dec 2001 12:08:06 +0000 (+0000) Subject: Patch #487455: make types.StringTypes a tuple. X-Git-Tag: v2.2.1c1~623 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b6bd42e08336a5a2280d474d0d4ce9cce3c48cd;p=thirdparty%2FPython%2Fcpython.git Patch #487455: make types.StringTypes a tuple. --- diff --git a/Lib/types.py b/Lib/types.py index 11bd4b4ce6f8..8a07950f7e98 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -26,9 +26,9 @@ except NameError: StringType = str try: UnicodeType = unicode - StringTypes = [StringType, UnicodeType] + StringTypes = (StringType, UnicodeType) except NameError: - StringTypes = [StringType] + StringTypes = (StringType,) BufferType = type(buffer(''))