diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-01 00:06:20 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 00:06:20 (GMT) |
commit | 8989ea6ce1619890adc58778fb5516a36053cadb (patch) | |
tree | 6e63c99618eaa95f0a640ef88ad1f837a2d9b834 | |
parent | a144900b861be806290e3124988c6f9c13c0f1b6 (diff) | |
download | cpython-8989ea6ce1619890adc58778fb5516a36053cadb.zip cpython-8989ea6ce1619890adc58778fb5516a36053cadb.tar.gz cpython-8989ea6ce1619890adc58778fb5516a36053cadb.tar.bz2 |
Use is None rather than general boolean
-rw-r--r-- | Lib/compileall.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py index 8110fb9..2fbc2bc 100644 --- a/Lib/compileall.py +++ b/Lib/compileall.py @@ -44,11 +44,11 @@ def compile_dir(dir, maxlevels=10, ddir=None, success = 1 for name in names: fullname = os.path.join(dir, name) - if ddir: + if ddir is not None: dfile = os.path.join(ddir, name) else: dfile = None - if rx: + if rx is not None: mo = rx.search(fullname) if mo: continue |