summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-07-31 01:11:29 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-07-31 01:11:29 (GMT)
commitfa3922cfd0697bc3286c301c5d9458160c80cc89 (patch)
tree4a445aa0e1327d8c901f17911e83241eedea915d /Lib/inspect.py
parent2808e441c51d1d67c72e7cc053825cbbb1dd1b53 (diff)
downloadcpython-fa3922cfd0697bc3286c301c5d9458160c80cc89.zip
cpython-fa3922cfd0697bc3286c301c5d9458160c80cc89.tar.gz
cpython-fa3922cfd0697bc3286c301c5d9458160c80cc89.tar.bz2
Issue #13248: Delete remaining references of inspect.getargspec().
Noticed by Yaroslav Halchenko.
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 1e94a9c..a089be6 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -16,7 +16,7 @@ Here are some of the useful functions provided by this module:
getmodule() - determine the module that an object came from
getclasstree() - arrange classes so as to represent their hierarchy
- getargspec(), getargvalues(), getcallargs() - get info about function arguments
+ getargvalues(), getcallargs() - get info about function arguments
getfullargspec() - same, with support for Python 3 features
formatargspec(), formatargvalues() - format an argument spec
getouterframes(), getinnerframes() - get info about frames
@@ -1018,8 +1018,6 @@ def getfullargspec(func):
'kwonlydefaults' is a dictionary mapping names from kwonlyargs to defaults.
'annotations' is a dictionary mapping argument names to annotations.
- The first four items in the tuple correspond to getargspec().
-
This function is deprecated, use inspect.signature() instead.
"""
@@ -1130,8 +1128,7 @@ def formatargspec(args, varargs=None, varkw=None, defaults=None,
formatvalue=lambda value: '=' + repr(value),
formatreturns=lambda text: ' -> ' + text,
formatannotation=formatannotation):
- """Format an argument spec from the values returned by getargspec
- or getfullargspec.
+ """Format an argument spec from the values returned by getfullargspec.
The first seven arguments are (args, varargs, varkw, defaults,
kwonlyargs, kwonlydefaults, annotations). The other five arguments