Removed use of deprecated inspect.formatargspec() for inspect.signature()

This commit is contained in:
Mickaël Schoentgen 2018-11-01 16:38:38 +01:00
parent 59966a62ec
commit 34bfe9f0f8
2 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,23 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Removed use of deprecated ``inspect.formatargspec()`` for ``inspect.signature()``
**Security:**
* <news item>

View file

@ -354,7 +354,7 @@ class Inspector(object):
exception is suppressed.
"""
try:
hdef = oname + inspect.formatargspec(*getargspec(obj))
hdef = oname + inspect.signature(*getargspec(obj))
return cast_unicode(hdef)
except: # pylint:disable=bare-except
return None