mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
Use is None rather than general boolean
This commit is contained in:
parent
a144900b86
commit
8989ea6ce1
1 changed files with 2 additions and 2 deletions
|
@ -44,11 +44,11 @@ def compile_dir(dir, maxlevels=10, ddir=None,
|
||||||
success = 1
|
success = 1
|
||||||
for name in names:
|
for name in names:
|
||||||
fullname = os.path.join(dir, name)
|
fullname = os.path.join(dir, name)
|
||||||
if ddir:
|
if ddir is not None:
|
||||||
dfile = os.path.join(ddir, name)
|
dfile = os.path.join(ddir, name)
|
||||||
else:
|
else:
|
||||||
dfile = None
|
dfile = None
|
||||||
if rx:
|
if rx is not None:
|
||||||
mo = rx.search(fullname)
|
mo = rx.search(fullname)
|
||||||
if mo:
|
if mo:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue