8000 gh-106797: Remove warning logs from Python/generated_cases.c.h and ex… · python/cpython@bf70774 · GitHub
[go: up one dir, main page]

Skip to content

Commit bf70774

Browse files
authored
gh-106797: Remove warning logs from Python/generated_cases.c.h and executor_cases.c.h (gh-107889)
gh-106797: Remove warning logs from Python/generated_cases.c.h
1 parent 2e1f688 commit bf70774

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Python/executor_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/stacking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ def as_terms(self) -> list[tuple[str, str]]:
6161
for eff in self.deep:
6262
if eff.size:
6363
terms.append(("-", maybe_parenthesize(eff.size)))
64-
elif eff.cond and eff.cond != "1":
64+
elif eff.cond and eff.cond not in ("0", "1"):
6565
terms.append(("-", f"({parenthesize_cond(eff.cond)} ? 1 : 0)"))
6666
elif eff.cond != "0":
6767
num -= 1
6868
for eff in self.high:
6969
if eff.size:
7070
terms.append(("+", maybe_parenthesize(eff.size)))
71-
elif eff.cond and eff.cond != "1":
71+
elif eff.cond and eff.cond not in ("0", "1"):
7272
terms.append(("+", f"({parenthesize_cond(eff.cond)} ? 1 : 0)"))
7373
elif eff.cond != "0":
7474
num += 1

0 commit comments

Comments
 (0)
0