Skip to content

Commit c205faa

Browse files
erlend-aaslandjbower-fb
authored andcommitted
pythongh-104146: Remove unused var 'parser_body_declarations' from clinic.py (python#104214)
1 parent 7192a46 commit c205faa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Tools/clinic/clinic.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -814,13 +814,11 @@ def output_templates(self, f):
814814
# parser_body_fields remembers the fields passed in to the
815815
# previous call to parser_body. this is used for an awful hack.
816816
parser_body_fields = ()
817-
parser_body_declarations = ''
818817
def parser_body(prototype, *fields, declarations=''):
819-
nonlocal parser_body_fields, parser_body_declarations
818+
nonlocal parser_body_fields
820819
add, output = text_accumulator()
821820
add(prototype)
822821
parser_body_fields = fields
823-
parser_body_declarations = declarations
824822

825823
fields = list(fields)
826824
fields.insert(0, normalize_snippet("""

0 commit comments

Comments
 (0)