commit | f13eb55d59d80907c9f86574ddd23bce2cb41ff3 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Jun 02 00:40:05 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sun Jun 02 00:40:05 2002 +0000 |
tree | 799ffe8a95c5cacd946f186f3022f380b418141d | |
parent | 1931ca72b5769ee686776617e2d97d839cc7d2d6 [diff] [blame] |
Replace boolean test with is None.
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index e48be72..1c54f67 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py
@@ -145,7 +145,7 @@ 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])