diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-01 00:06:20 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 00:06:20 +0000 |
commit | 8989ea6ce1619890adc58778fb5516a36053cadb (patch) | |
tree | 6e63c99618eaa95f0a640ef88ad1f837a2d9b834 /Lib/compileall.py | |
parent | a144900b861be806290e3124988c6f9c13c0f1b6 (diff) | |
download | cpython-git-8989ea6ce1619890adc58778fb5516a36053cadb.tar.gz |
Use is None rather than general boolean
Diffstat (limited to 'Lib/compileall.py')
-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 8110fb95fb..2fbc2bc517 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 |