summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2023-05-05 21:35:24 (GMT)
committerGitHub <noreply@github.com>2023-05-05 21:35:24 (GMT)
commit66558d2a16ee42afc0e2c02e6a90bfd62dcb67f6 (patch)
treec9eeb350b895e9c8a2ffc7b6c6945c43c63bf714 /Tools
parenta9c6e0618f26270e2591b3d99ffeef55eea02a33 (diff)
downloadcpython-66558d2a16ee42afc0e2c02e6a90bfd62dcb67f6.zip
cpython-66558d2a16ee42afc0e2c02e6a90bfd62dcb67f6.tar.gz
cpython-66558d2a16ee42afc0e2c02e6a90bfd62dcb67f6.tar.bz2
gh-104146: Remove unused var 'parser_body_declarations' from clinic.py (#104214)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/clinic/clinic.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 5f6e67e..7043256 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -814,13 +814,11 @@ class CLanguage(Language):
# parser_body_fields remembers the fields passed in to the
# previous call to parser_body. this is used for an awful hack.
parser_body_fields = ()
- parser_body_declarations = ''
def parser_body(prototype, *fields, declarations=''):
- nonlocal parser_body_fields, parser_body_declarations
+ nonlocal parser_body_fields
add, output = text_accumulator()
add(prototype)
parser_body_fields = fields
- parser_body_declarations = declarations
fields = list(fields)
fields.insert(0, normalize_snippet("""