diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-02-09 17:38:28 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-02-09 17:38:28 +0100 |
commit | 04f5f97f160040692905d414782e40e609a47f93 (patch) | |
tree | c1e10d58b199e34267cfacdf11041c2d70474101 | |
parent | b32ef220df8e8f8b073be381312b94780a1ac376 (diff) | |
download | cython-04f5f97f160040692905d414782e40e609a47f93.tar.gz |
Bring the doc string C constant back all for special methods, except for the buffer methods.
-rw-r--r-- | Cython/Compiler/Nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index ce1143710..9fe38390c 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3443,7 +3443,7 @@ class DefNodeWrapper(FuncDefNode): if docstr.is_unicode: docstr = docstr.as_utf8_string() - if with_pymethdef or (entry.is_special and entry.name not in ('__getbuffer__', '__releasebuffer__')): + if not (entry.is_special and entry.name in ('__getbuffer__', '__releasebuffer__')): code.putln('static char %s[] = %s;' % ( entry.doc_cname, docstr.as_c_string_literal())) |