mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Two small, quick bugfixes for Argument Clinic.
This commit is contained in:
parent
0db06a1c42
commit
ef3b1fbb2b
1 changed files with 2 additions and 2 deletions
|
|
@ -922,8 +922,8 @@ def parse_clinic_block(self, dsl_name):
|
|||
if self.is_start_line(line):
|
||||
break
|
||||
|
||||
output = output_output()
|
||||
if checksum:
|
||||
output = output_output()
|
||||
if self.verify:
|
||||
computed = compute_checksum(output)
|
||||
if checksum != computed:
|
||||
|
|
@ -2054,7 +2054,7 @@ def state_parameter(self, line):
|
|||
except SyntaxError:
|
||||
pass
|
||||
if not module:
|
||||
fail("Function " + clinic.name + " has an invalid parameter declaration:\n\t" + line)
|
||||
fail("Function " + self.function.name + " has an invalid parameter declaration:\n\t" + line)
|
||||
|
||||
function_args = module.body[0].args
|
||||
parameter = function_args.args[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue