diff options
author | Guido van Rossum <guido@python.org> | 2000-04-27 20:14:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-04-27 20:14:13 (GMT) |
commit | ec5b776998481c4b8e2ebfe2bbf0b76d5fa95a6b (patch) | |
tree | 0bc786b0d7b2dd11f58ec3ff1ef07ea85a05e7f7 /Objects/funcobject.c | |
parent | 3c1bb8043fa8000dcbd41eec6c3a683b3796521e (diff) | |
download | cpython-ec5b776998481c4b8e2ebfe2bbf0b76d5fa95a6b.zip cpython-ec5b776998481c4b8e2ebfe2bbf0b76d5fa95a6b.tar.gz cpython-ec5b776998481c4b8e2ebfe2bbf0b76d5fa95a6b.tar.bz2 |
Marc-Andre Lemburg:
Doc strings can now be given as Unicode strings.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 2 |
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 |