summaryrefslogtreecommitdiff
path: root/Cython/Compiler
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2016-03-28 11:07:20 +0200
committerStefan Behnel <stefan_ml@behnel.de>2016-03-28 11:07:20 +0200
commit1b32596704ef774bf0b642f4480d7ce27cb7a07a (patch)
tree4925fc10065f24be1ba3edd324ba0a845f6773c1 /Cython/Compiler
parentbe4b27c76e1af2e0ce6216c60697727259c24ffc (diff)
downloadcython-1b32596704ef774bf0b642f4480d7ce27cb7a07a.tar.gz
minor code cleanup
Diffstat (limited to 'Cython/Compiler')
-rw-r--r--Cython/Compiler/AutoDocTransforms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Compiler/AutoDocTransforms.py b/Cython/Compiler/AutoDocTransforms.py
index b375da632..8adaba099 100644
--- a/Cython/Compiler/AutoDocTransforms.py
+++ b/Cython/Compiler/AutoDocTransforms.py
@@ -70,7 +70,7 @@ class EmbedSignature(CythonTransform):
except Exception:
try:
return self._fmt_expr_node(default_val)
- except AttributeError as e:
+ except AttributeError:
return '<???>'
def _fmt_arg(self, arg):
@@ -190,7 +190,7 @@ class EmbedSignature(CythonTransform):
old_doc = node.py_func.entry.doc
else:
old_doc = None
- new_doc = self._embed_signature(signature, old_doc)
+ new_doc = self._embed_signature(signature, old_doc)
doc_holder.doc = EncodedString(new_doc)
if not is_constructor and getattr(node, 'py_func', None) is not None:
node.py_func.entry.doc = EncodedString(new_doc)