summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-07 18:16:36 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-07 18:16:36 (GMT)
commitdfe5dc8455de93fddb3030416e41b92d3a0fd267 (patch)
tree4a088e75d976c7383f525d730f4f5f5a88cd0a49 /Objects
parentaed6c66aa8c9d1d2af9e60323e688452dfd6b6c7 (diff)
downloadcpython-dfe5dc8455de93fddb3030416e41b92d3a0fd267.zip
cpython-dfe5dc8455de93fddb3030416e41b92d3a0fd267.tar.gz
cpython-dfe5dc8455de93fddb3030416e41b92d3a0fd267.tar.bz2
Make Python compile with --disable-unicode.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index e790c04..bfd2a4c 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -3220,8 +3220,10 @@ inherit_special(PyTypeObject *type, PyTypeObject *base)
type->tp_flags |= Py_TPFLAGS_LONG_SUBCLASS;
else if (PyType_IsSubtype(base, &PyString_Type))
type->tp_flags |= Py_TPFLAGS_STRING_SUBCLASS;
+#ifdef Py_USING_UNICODE
else if (PyType_IsSubtype(base, &PyUnicode_Type))
type->tp_flags |= Py_TPFLAGS_UNICODE_SUBCLASS;
+#endif
else if (PyType_IsSubtype(base, &PyTuple_Type))
type->tp_flags |= Py_TPFLAGS_TUPLE_SUBCLASS;
else if (PyType_IsSubtype(base, &PyList_Type))