Commit 4e46d6ae authored by Stefan Behnel's avatar Stefan Behnel

merged in latest cython-devel

parents 3cadad3c b1a0e894
......@@ -6651,8 +6651,9 @@ class DocstringRefNode(ExprNode):
pass
def generate_result_code(self, code):
code.putln('%s = __Pyx_GetAttrString(%s, "__doc__");' %
(self.result(), self.body.result()))
code.putln('%s = __Pyx_GetAttrString(%s, "__doc__"); %s' % (
self.result(), self.body.result(),
code.error_goto_if_null(self.result(), self.pos)))
code.put_gotref(self.result())
......
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