summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/types.py b/Lib/types.py
index 01af463640..6c23e244e2 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -19,7 +19,12 @@ except NameError:
pass
StringType = str
-UnicodeType = unicode
+try:
+ UnicodeType = unicode
+ StringTypes = [StringType, UnicodeType]
+except NameError:
+ StringTypes = [StringType]
+
BufferType = type(buffer(''))
TupleType = tuple