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
7ddc03f0
Commit
7ddc03f0
authored
Apr 10, 2020
by
Tiago Peixoto
Browse files
use inspect.getfullargspec instead of inspect.getargspec
parent
343c7b61
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/decorators.py
View file @
7ddc03f0
...
...
@@ -49,7 +49,7 @@ def _limit_args(allowed_vals):
def
decorate
(
func
):
@
_wraps
(
func
)
def
wrap
(
*
args
,
**
kwargs
):
arg_names
=
inspect
.
getargspec
(
func
)[
0
]
arg_names
=
inspect
.
get
full
argspec
(
func
)[
0
]
arguments
=
list
(
zip
(
arg_names
,
args
))
arguments
+=
[(
k
,
kwargs
[
k
])
for
k
in
list
(
kwargs
.
keys
())]
for
a
in
arguments
:
...
...
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