mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Removed use of deprecated inspect.formatargspec() for inspect.signature()
This commit is contained in:
parent
59966a62ec
commit
34bfe9f0f8
2 changed files with 24 additions and 1 deletions
23
news/fix-use-of-formatargspec.rst
Normal file
23
news/fix-use-of-formatargspec.rst
Normal 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>
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue