summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-02-09 17:38:28 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-02-09 17:38:28 +0100
commit04f5f97f160040692905d414782e40e609a47f93 (patch)
treec1e10d58b199e34267cfacdf11041c2d70474101
parentb32ef220df8e8f8b073be381312b94780a1ac376 (diff)
downloadcython-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.py2
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()))