Replace boolean test with is None.

This commit is contained in:
Raymond Hettinger 2002-06-02 00:40:05 +00:00
parent 1931ca72b5
commit f13eb55d59
6 changed files with 10 additions and 10 deletions

View file

@ -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])