summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas A Caswell <tcaswell@gmail.com>2019-05-01 15:12:35 (GMT)
committerPablo Galindo <Pablogsal@gmail.com>2019-05-01 15:12:34 (GMT)
commit18029d80bde1743da6900600633f0fa54d7c1044 (patch)
tree20d89ab52babdc76962d2d5e3f2ca3ed766d87f7 /Lib
parent1a9f0d8efded4bf37c864ed572beff28c43c7c77 (diff)
downloadcpython-18029d80bde1743da6900600633f0fa54d7c1044.zip
cpython-18029d80bde1743da6900600633f0fa54d7c1044.tar.gz
cpython-18029d80bde1743da6900600633f0fa54d7c1044.tar.bz2
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 d5d2b4546939b98244708e5bb0cfccd55b99d244
Diffstat (limited to 'Lib')
-rw-r--r--Lib/inspect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index fffca22..c460309 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -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`
#