diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-04-13 23:22:35 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-04-13 23:22:35 (GMT) |
commit | 8ef887ce47421e0e3e9ec0c95735990bb0594ffe (patch) | |
tree | 3a547c2984fd7086cc1d7a7840734bf7ae94baff /Objects | |
parent | a6cc551502aac1fd011009abe40686f4647ba6b0 (diff) | |
download | cpython-8ef887ce47421e0e3e9ec0c95735990bb0594ffe.zip cpython-8ef887ce47421e0e3e9ec0c95735990bb0594ffe.tar.gz cpython-8ef887ce47421e0e3e9ec0c95735990bb0594ffe.tar.bz2 |
Issue #20586: Argument Clinic now ensures signatures on functions without docstrings.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 0e54fe6..4b99287 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -137,7 +137,7 @@ _PyType_GetDocFromInternalDoc(const char *name, const char *internal_doc) { const char *doc = _PyType_DocWithoutSignature(name, internal_doc); - if (!doc) { + if (!doc || *doc == '\0') { Py_INCREF(Py_None); return Py_None; } |