[Python-checkins] gh-104146: Remove unused vars from Argument Clinic (#104627)

erlend-aasland webhook-mailer at python.org
Thu May 18 17:53:26 EDT 2023


https://github.com/python/cpython/commit/61027c0211adf50e81b202075246509775808482
commit: 61027c0211adf50e81b202075246509775808482
branch: main
author: Erlend E. Aasland <erlend.aasland at protonmail.com>
committer: erlend-aasland <erlend.aasland at protonmail.com>
date: 2023-05-18T21:52:59Z
summary:

gh-104146: Remove unused vars from Argument Clinic (#104627)

Remove 'in_classes' and 'so_far' from DSLParser.directive_module()

files:
M Tools/clinic/clinic.py

diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 5fcf2bf485fc..ebee97829394 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -4230,10 +4230,8 @@ def directive_module(self, name):
 
     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



More information about the Python-checkins mailing list