From 8989ea6ce1619890adc58778fb5516a36053cadb Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 1 Jun 2002 00:06:20 +0000 Subject: Use is None rather than general boolean --- Lib/compileall.py | 4 ++-- 1 file 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 -- cgit v0.12