diff options
Diffstat (limited to 'Lib/types.py')
-rw-r--r-- | Lib/types.py | 7 |
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 |