From: Raymond Hettinger Date: Sat, 1 Jun 2002 00:06:20 +0000 (+0000) Subject: Use is None rather than general boolean X-Git-Tag: v2.3c1~5532 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8989ea6ce1619890adc58778fb5516a36053cadb;p=thirdparty%2FPython%2Fcpython.git Use is None rather than general boolean --- diff --git a/Lib/compileall.py b/Lib/compileall.py index 8110fb95fb86..2fbc2bc51747 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