Use is None rather than general boolean

This commit is contained in:
Raymond Hettinger 2002-06-01 00:06:20 +00:00
parent a144900b86
commit 8989ea6ce1
1 changed files with 2 additions and 2 deletions

View 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