Push reducechecks from 2.7 into 2.6

Some adaption is needed. These rules may also help earlier 2.x Python as well
This commit is contained in:
rocky
2022-08-23 21:36:55 -04:00
parent 14aa0ce8f0
commit 71b1446c9c
5 changed files with 193 additions and 63 deletions

View File

@@ -1,4 +1,7 @@
# Copyright (c) 2020-2022 Rocky Bernstein
"""
If/else statement reduction check for Python 2.6 (and older?)
"""
IFELSE_STMT_RULES = frozenset(
[