Commit 04f588b2 authored by Stefan Behnel's avatar Stefan Behnel

simplification

parent 30b56290
...@@ -161,7 +161,7 @@ class EmbedSignature(CythonTransform): ...@@ -161,7 +161,7 @@ class EmbedSignature(CythonTransform):
if signature: if signature:
if node.entry.doc is not None: if node.entry.doc is not None:
old_doc = node.entry.doc old_doc = node.entry.doc
elif hasattr(node, 'py_func') and node.py_func is not None: elif getattr(node, 'py_func', None) is not None:
old_doc = node.py_func.entry.doc old_doc = node.py_func.entry.doc
else: else:
old_doc = None old_doc = None
......
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