mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
Replace boolean test with is None.
This commit is contained in:
parent
1931ca72b5
commit
f13eb55d59
6 changed files with 10 additions and 10 deletions
|
@ -145,7 +145,7 @@ def _compile(code, pattern, flags):
|
|||
def _compile_charset(charset, flags, code, fixup=None):
|
||||
# compile charset subprogram
|
||||
emit = code.append
|
||||
if not fixup:
|
||||
if fixup is None:
|
||||
fixup = lambda x: x
|
||||
for op, av in _optimize_charset(charset, fixup):
|
||||
emit(OPCODES[op])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue