summaryrefslogtreecommitdiffstats
path: root/Lib/py_compile.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-01 16:07:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-01 16:07:16 (GMT)
commit16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1 (patch)
treed48f5e5b73a5124cabe347106a331ad8085c0064 /Lib/py_compile.py
parent793d4b49361a010e4baa485ec77e3adc430f0236 (diff)
downloadcpython-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.py2
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')