]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104146: Remove unused vars from Argument Clinic (#104627)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Thu, 18 May 2023 21:52:59 +0000 (23:52 +0200)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 21:52:59 +0000 (21:52 +0000)
Remove 'in_classes' and 'so_far' from DSLParser.directive_module()

Tools/clinic/clinic.py

index 5fcf2bf485fc8a958034744e39cfdec7189d0b63..ebee9782939499d4ad47c3a3571abe22a2998d92 100755 (executable)
@@ -4230,10 +4230,8 @@ class DSLParser:
 
     def directive_class(self, name, typedef, type_object):
         fields = name.split('.')
-        in_classes = False
         parent = self
         name = fields.pop()
-        so_far = []
         module, cls = self.clinic._module_and_class(fields)
 
         parent = cls or module