Kaydet (Commit) 8989ea6c authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Use is None rather than general boolean

üst a144900b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment