]> granicus.if.org Git - python/commitdiff
Patch #487455: make types.StringTypes a tuple.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 2 Dec 2001 12:08:06 +0000 (12:08 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 2 Dec 2001 12:08:06 +0000 (12:08 +0000)
Lib/types.py

index 11bd4b4ce6f8ef8ad7fdfb84c804b44db6ea75d7..8a07950f7e98bf1588b92376052baf9887e1c059 100644 (file)
@@ -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(''))