mirror of
https://github.com/python/cpython.git
synced 2024-12-11 10:50:11 +08:00
gh-104146: Remove unused var 'parser_body_declarations' from clinic.py (#104214)
This commit is contained in:
parent
a9c6e0618f
commit
66558d2a16
@ -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("""
|
||||
|
Loading…
Reference in New Issue
Block a user