Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
3c47097d
Commit
3c47097d
authored
Apr 01, 2020
by
Alex Henrie
Browse files
Use inspect.getfullargspec instead of inspect.getarcspec
parent
5d5f626d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/decorators.py
View file @
3c47097d
...
...
@@ -52,7 +52,7 @@ else:
also preserves the function's argument signature. This uses eval, and is
thus a bit of a hack, but there no better way I know of to do this."""
def
decorate
(
f
):
argspec
=
inspect
.
getargspec
(
func
)
argspec
=
inspect
.
get
full
argspec
(
func
)
___wrap_defaults
=
defaults
=
argspec
[
-
1
]
if
defaults
is
not
None
:
def_string
=
[
"___wrap_defaults[%d]"
%
d
for
...
...
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