Commit 6aaa09e2 authored by Stefan Behnel's avatar Stefan Behnel

use interned Python string constant instead of calling through __Pyx_GetAttrString()

parent 3e9bfbb6
...@@ -9958,8 +9958,9 @@ class DocstringRefNode(ExprNode): ...@@ -9958,8 +9958,9 @@ class DocstringRefNode(ExprNode):
pass pass
def generate_result_code(self, code): def generate_result_code(self, code):
code.putln('%s = __Pyx_GetAttrString(%s, "__doc__"); %s' % ( code.putln('%s = __Pyx_GetAttr(%s, %s); %s' % (
self.result(), self.body.result(), self.result(), self.body.result(),
code.intern_identifier(StringEncoding.EncodedString("__doc__")),
code.error_goto_if_null(self.result(), self.pos))) code.error_goto_if_null(self.result(), self.pos)))
code.put_gotref(self.result()) 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