0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

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

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