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:
parent
a144900b86
commit
8989ea6ce1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user