summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorandrei kulakov <andrei.avk@gmail.com>2021-07-13 13:42:56 (GMT)
committerGitHub <noreply@github.com>2021-07-13 13:42:56 (GMT)
commitd4a5f0b659a2b8f206cfbdfd37fc36aedf77a71f (patch)
treecb567a4e5989e34dd1dfa0351f66a156f0ea1709 /Lib/inspect.py
parent62d55a4d11fe25e8981e27e68ba080ab47c3f590 (diff)
downloadcpython-d4a5f0b659a2b8f206cfbdfd37fc36aedf77a71f.zip
cpython-d4a5f0b659a2b8f206cfbdfd37fc36aedf77a71f.tar.gz
cpython-d4a5f0b659a2b8f206cfbdfd37fc36aedf77a71f.tar.bz2
bpo-35113: clean up duplicate import and comment (#27073)
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 89b2e72..7a2eefe 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -2096,10 +2096,6 @@ def _signature_fromstr(cls, obj, s, skip_bound_arg=True):
"""Private helper to parse content of '__text_signature__'
and return a Signature based on it.
"""
- # Lazy import ast because it's relatively heavy and
- # it's not used for other than this function.
- import ast
-
Parameter = cls._parameter_cls
clean_signature, self_parameter, last_positional_only = \