MNT: set stacklevel in the getfullargspec deprecation warning to 2 (GH-13029)

This is consistent with the rest of the `warnings.warn` usage in the
inspect.py module and aids identifying code that needs to be fixed.

This warning came in via d5d2b45469
This commit is contained in:
Thomas A Caswell 2019-05-01 11:12:35 -04:00 committed by Pablo Galindo
parent 1a9f0d8efd
commit 18029d80bd
1 changed files with 1 additions and 1 deletions

View File

@ -1112,7 +1112,7 @@ def getfullargspec(func):
"""
warnings.warn("Use inspect.signature() instead of inspect.getfullargspec()",
DeprecationWarning)
DeprecationWarning, stacklevel=2)
try:
# Re: `skip_bound_arg=False`
#