Skip to content

Commit

Permalink
gh-104146: Remove unused var 'parser_body_declarations' from clinic.py (
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland authored May 5, 2023
1 parent a9c6e06 commit 66558d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,13 +814,11 @@ def output_templates(self, f):
# 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("""
Expand Down

0 comments on commit 66558d2

Please sign in to comment.