mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-104146: Remove unused var 'parser_body_declarations' from clinic.py (#104214)
This commit is contained in:
parent
a9c6e0618f
commit
66558d2a16
1 changed files with 1 additions and 3 deletions
|
|
@ -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("""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue