Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
1b325967
Commit
1b325967
authored
Mar 28, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor code cleanup
parent
be4b27c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/AutoDocTransforms.py
Cython/Compiler/AutoDocTransforms.py
+2
-2
No files found.
Cython/Compiler/AutoDocTransforms.py
View file @
1b325967
...
@@ -70,7 +70,7 @@ class EmbedSignature(CythonTransform):
...
@@ -70,7 +70,7 @@ class EmbedSignature(CythonTransform):
except
Exception
:
except
Exception
:
try
:
try
:
return
self
.
_fmt_expr_node
(
default_val
)
return
self
.
_fmt_expr_node
(
default_val
)
except
AttributeError
as
e
:
except
AttributeError
:
return
'<???>'
return
'<???>'
def
_fmt_arg
(
self
,
arg
):
def
_fmt_arg
(
self
,
arg
):
...
@@ -190,7 +190,7 @@ class EmbedSignature(CythonTransform):
...
@@ -190,7 +190,7 @@ class EmbedSignature(CythonTransform):
old_doc
=
node
.
py_func
.
entry
.
doc
old_doc
=
node
.
py_func
.
entry
.
doc
else
:
else
:
old_doc
=
None
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
)
doc_holder
.
doc
=
EncodedString
(
new_doc
)
if
not
is_constructor
and
getattr
(
node
,
'py_func'
,
None
)
is
not
None
:
if
not
is_constructor
and
getattr
(
node
,
'py_func'
,
None
)
is
not
None
:
node
.
py_func
.
entry
.
doc
=
EncodedString
(
new_doc
)
node
.
py_func
.
entry
.
doc
=
EncodedString
(
new_doc
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment