]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106812: Fix two tiny bugs in analysis.py (#107649)
authorGuido van Rossum <guido@python.org>
Sat, 5 Aug 2023 04:50:36 +0000 (21:50 -0700)
committerGitHub <noreply@github.com>
Sat, 5 Aug 2023 04:50:36 +0000 (04:50 +0000)
commit85e5b1f5b806289744ef9a5a13dabfb23044f713
tree7b492612cf51668470b9de6579732e37200b534a
parent4e6fac7fcc31fc6198fcddc612688b0a05ff7ae4
gh-106812: Fix two tiny bugs in analysis.py (#107649)

This fixes two tiny defects in analysis.py that I didn't catch on time in #107564:

- `get_var_names` in `check_macro_consistency` should skip `UNUSED` names.
- Fix an occurrence of `is UNUSED` (should be `==`).
Tools/cases_generator/analysis.py