Merge "Handle deprecation of inspect.getargspec"
This commit is contained in:
commit
964595a20f
|
@ -27,6 +27,11 @@ from keystone.i18n import _
|
|||
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
if hasattr(inspect, 'getfullargspec'):
|
||||
getargspec = inspect.getfullargspec
|
||||
else:
|
||||
getargspec = inspect.getargspec
|
||||
|
||||
|
||||
def response_truncated(f):
|
||||
"""Truncate the list returned by the wrapped function.
|
||||
|
@ -86,7 +91,7 @@ class _TraceMeta(type):
|
|||
|
||||
@staticmethod
|
||||
def wrapper(__f, __classname):
|
||||
__argspec = inspect.getargspec(__f)
|
||||
__argspec = getargspec(__f)
|
||||
__fn_info = '%(module)s.%(classname)s.%(funcname)s' % {
|
||||
'module': inspect.getmodule(__f).__name__,
|
||||
'classname': __classname,
|
||||
|
|
Loading…
Reference in New Issue