[Python-checkins] bpo-35113: clean up duplicate import and comment (#27073)
ambv
webhook-mailer at python.org
Tue Jul 13 09:43:06 EDT 2021
https://github.com/python/cpython/commit/d4a5f0b659a2b8f206cfbdfd37fc36aedf77a71f
commit: d4a5f0b659a2b8f206cfbdfd37fc36aedf77a71f
branch: main
author: andrei kulakov <andrei.avk at gmail.com>
committer: ambv <lukasz at langa.pl>
date: 2021-07-13T15:42:56+02:00
summary:
bpo-35113: clean up duplicate import and comment (#27073)
files:
M Lib/inspect.py
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 89b2e722be8fa..7a2eefec5a80d 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 = \
More information about the Python-checkins
mailing list