From e935de54575436ee4b9345fb9668c27cbb0ef082 Mon Sep 17 00:00:00 2001
From: mormj <mormjb@gmail.com>
Date: Thu, 8 Oct 2020 10:05:51 -0400
Subject: digital: replace deprecated getargspec with getfullargspec to remove
 warning

---
 gr-digital/python/digital/modulation_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'gr-digital/python/digital/modulation_utils.py')

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)
-- 
cgit v1.2.3