commit | 8989ea6ce1619890adc58778fb5516a36053cadb | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Jun 01 00:06:20 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Jun 01 00:06:20 2002 +0000 |
tree | 6e63c99618eaa95f0a640ef88ad1f837a2d9b834 | |
parent | a144900b861be806290e3124988c6f9c13c0f1b6 [diff] |
Use is None rather than general boolean
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 @@ 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