diff --git a/configsuite/extension/ext.py b/configsuite/extension/ext.py index 63bc95c0..f6a94ca0 100644 --- a/configsuite/extension/ext.py +++ b/configsuite/extension/ext.py @@ -18,13 +18,7 @@ import os import importlib - -# The getargspec/getfullargspec should be dropped -# for the "signature" module when python2 is not supported -try: - from inspect import getfullargspec as inspect_method -except ImportError: - from inspect import getargspec as inspect_method +import inspect from docutils.parsers.rst import Directive from docutils.parsers.rst.directives import unchanged_required @@ -187,7 +181,7 @@ def run(self): ) raise self.error(err_msg.format(func_name=func_str)) - insp = inspect_method(schema_func) # pylint: disable=deprecated-method + insp = inspect.getfullargspec(schema_func) if len(insp.args) != 0: err_msg = ( "The module.function given at Configsuite :module: "