Patch #445762: Support --disable-unicode
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
diff --git a/Lib/types.py b/Lib/types.py
index 01af463..6c23e24 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -19,7 +19,12 @@
     pass
 
 StringType = str
-UnicodeType = unicode
+try:
+    UnicodeType = unicode
+    StringTypes = [StringType, UnicodeType]
+except NameError:
+    StringTypes = [StringType]
+
 BufferType = type(buffer(''))
 
 TupleType = tuple