summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-04-27 20:14:13 (GMT)
committerGuido van Rossum <guido@python.org>2000-04-27 20:14:13 (GMT)
commitec5b776998481c4b8e2ebfe2bbf0b76d5fa95a6b (patch)
tree0bc786b0d7b2dd11f58ec3ff1ef07ea85a05e7f7
parent3c1bb8043fa8000dcbd41eec6c3a683b3796521e (diff)
downloadcpython-ec5b776998481c4b8e2ebfe2bbf0b76d5fa95a6b.zip
cpython-ec5b776998481c4b8e2ebfe2bbf0b76d5fa95a6b.tar.gz
cpython-ec5b776998481c4b8e2ebfe2bbf0b76d5fa95a6b.tar.bz2
Marc-Andre Lemburg:
Doc strings can now be given as Unicode strings.
-rw-r--r--Objects/funcobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index c9dd139..562935c 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -55,7 +55,7 @@ PyFunction_New(code, globals)
consts = ((PyCodeObject *)code)->co_consts;
if (PyTuple_Size(consts) >= 1) {
doc = PyTuple_GetItem(consts, 0);
- if (!PyString_Check(doc))
+ if (!PyString_Check(doc) && !PyUnicode_Check(doc))
doc = Py_None;
}
else