summaryrefslogtreecommitdiff
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-05-31 23:54:44 +0000
committerRaymond Hettinger <python@rcn.com>2002-05-31 23:54:44 +0000
commita144900b861be806290e3124988c6f9c13c0f1b6 (patch)
treeb45c43187a40a9a4a4289620ec0cf483e72e171b /Lib/cgi.py
parentc0418609eb0864c9ee532d559858de22cc28fb3a (diff)
downloadcpython-git-a144900b861be806290e3124988c6f9c13c0f1b6.tar.gz
Use is None rather than general boolean
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index a7ad5bf01f..14ebeb966f 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -128,7 +128,7 @@ def parse(fp=None, environ=os.environ, keep_blank_values=0, strict_parsing=0):
If false (the default), errors are silently ignored.
If true, errors raise a ValueError exception.
"""
- if not fp:
+ if fp is None:
fp = sys.stdin
if not environ.has_key('REQUEST_METHOD'):
environ['REQUEST_METHOD'] = 'GET' # For testing stand-alone