Skip to content

Commit b8b4f15

Browse files
committed
Fix regex nit
1 parent 19b989c commit b8b4f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/cases_generator/generate_cases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def write_cases(f: io.TextIOBase, instrs: list[InstDef]):
102102
# Write the body
103103
ninputs = len(instr.inputs or ())
104104
for line in blocklines:
105-
if m := re.match(r"(\s*)ERROR_IF\(([^,]+), (\w+)\);\s$", line):
105+
if m := re.match(r"(\s*)ERROR_IF\(([^,]+), (\w+)\);\s*$", line):
106106
space, cond, label = m.groups()
107107
# ERROR_IF() must remove the inputs from the stack.
108108
# The code block is responsible for DECREF()ing them.

0 commit comments

Comments
 (0)