mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Replace boolean test with is None.
This commit is contained in:
parent
793d4b4936
commit
16e3c427f3
7 changed files with 12 additions and 12 deletions
|
@ -67,7 +67,7 @@ def compile(file, cfile=None, dfile=None):
|
|||
sys.stderr.write(line.replace('File "<string>"',
|
||||
'File "%s"' % (dfile or file)))
|
||||
return
|
||||
if not cfile:
|
||||
if cfile is None:
|
||||
cfile = file + (__debug__ and 'c' or 'o')
|
||||
fc = open(cfile, 'wb')
|
||||
fc.write('\0\0\0\0')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue