diff options
author | mormj <mormjb@gmail.com> | 2020-10-08 10:05:51 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-10-16 07:13:06 -0400 |
commit | e935de54575436ee4b9345fb9668c27cbb0ef082 (patch) | |
tree | 14645d343f98057527a509c6e68fe5de604e1acd /gr-digital/python/digital/modulation_utils.py | |
parent | f6d66811dc1f78e9da0d64f73c183bd8854caf20 (diff) |
digital: replace deprecated getargspec with getfullargspec to remove warning
Diffstat (limited to 'gr-digital/python/digital/modulation_utils.py')
-rw-r--r-- | gr-digital/python/digital/modulation_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-digital/python/digital/modulation_utils.py b/gr-digital/python/digital/modulation_utils.py index c290bf5a8d..59809ae1d8 100644 --- a/gr-digital/python/digital/modulation_utils.py +++ b/gr-digital/python/digital/modulation_utils.py @@ -69,9 +69,9 @@ def extract_kwargs_from_options(function, excluded_args, options): """ # Try this in C++ ;) - args, varargs, varkw, defaults = inspect.getargspec(function) + spec = inspect.getfullargspec(function) d = {} - for kw in [a for a in args if a not in excluded_args]: + for kw in [a for a in spec.args if a not in excluded_args]: if hasattr(options, kw): if getattr(options, kw) is not None: d[kw] = getattr(options, kw) |