From f6d66811dc1f78e9da0d64f73c183bd8854caf20 Mon Sep 17 00:00:00 2001 From: mormj <mormjb@gmail.com> Date: Thu, 8 Oct 2020 10:03:35 -0400 Subject: grc: replace deprecated getargspec with getfullargspec to remove warning --- grc/core/utils/epy_block_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grc/core/utils/epy_block_io.py') diff --git a/grc/core/utils/epy_block_io.py b/grc/core/utils/epy_block_io.py index e946eb7bf1..58becc4f2b 100644 --- a/grc/core/utils/epy_block_io.py +++ b/grc/core/utils/epy_block_io.py @@ -52,7 +52,7 @@ def extract(cls): if not inspect.isclass(cls): cls = _find_block_class(cls, gr.gateway.gateway_block) - spec = inspect.getargspec(cls.__init__) + spec = inspect.getfullargspec(cls.__init__) init_args = spec.args[1:] defaults = [repr(arg) for arg in (spec.defaults or ())] doc = cls.__doc__ or cls.__init__.__doc__ or '' -- cgit v1.2.3