Commit 09699be4 authored by Stefan Behnel's avatar Stefan Behnel

Merge branch '0.29.x'

parents b62d8ba5 b32ef220
......@@ -3466,7 +3466,7 @@ class DefNodeWrapper(FuncDefNode):
if docstr.is_unicode:
docstr = docstr.as_utf8_string()
if with_pymethdef:
if with_pymethdef or (entry.is_special and entry.name not in ('__getbuffer__', '__releasebuffer__')):
code.putln('static char %s[] = %s;' % (
entry.doc_cname,
docstr.as_c_string_literal()))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment