]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35113: clean up duplicate import and comment (#27073)
authorandrei kulakov <andrei.avk@gmail.com>
Tue, 13 Jul 2021 13:42:56 +0000 (09:42 -0400)
committerGitHub <noreply@github.com>
Tue, 13 Jul 2021 13:42:56 +0000 (15:42 +0200)
Lib/inspect.py

index 89b2e722be8fad304f02307f096591ef79f79680..7a2eefec5a80d420b8dd2f94616fca21517f4c8c 100644 (file)
@@ -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 = \