diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-01 16:07:16 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 16:07:16 (GMT) |
commit | 16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1 (patch) | |
tree | d48f5e5b73a5124cabe347106a331ad8085c0064 /Lib/py_compile.py | |
parent | 793d4b49361a010e4baa485ec77e3adc430f0236 (diff) | |
download | cpython-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.zip cpython-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.tar.gz cpython-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.tar.bz2 |
Replace boolean test with is None.
Diffstat (limited to 'Lib/py_compile.py')
-rw-r--r-- | Lib/py_compile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py index afeaae1..ce67584 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -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') |