summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2023-05-18 21:52:59 (GMT)
committerGitHub <noreply@github.com>2023-05-18 21:52:59 (GMT)
commit61027c0211adf50e81b202075246509775808482 (patch)
treea67644b3d52e99d917a0e6802901b8ccbc74b503 /Tools
parent0589c6a4d3d822cace42050198cb9a5e99c879ad (diff)
downloadcpython-61027c0211adf50e81b202075246509775808482.zip
cpython-61027c0211adf50e81b202075246509775808482.tar.gz
cpython-61027c0211adf50e81b202075246509775808482.tar.bz2
gh-104146: Remove unused vars from Argument Clinic (#104627)
Remove 'in_classes' and 'so_far' from DSLParser.directive_module()
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/clinic/clinic.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 5fcf2bf..ebee978 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -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