]> granicus.if.org Git - python/commitdiff
Use is None rather than general boolean
authorRaymond Hettinger <python@rcn.com>
Sat, 1 Jun 2002 00:06:20 +0000 (00:06 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 1 Jun 2002 00:06:20 +0000 (00:06 +0000)
Lib/compileall.py

index 8110fb95fb86c6251dbaa9ff9c8338f47055991f..2fbc2bc51747728ee92e22855adc86ec28b71a69 100644 (file)
@@ -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