commit | a144900b861be806290e3124988c6f9c13c0f1b6 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri May 31 23:54:44 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Fri May 31 23:54:44 2002 +0000 |
tree | b45c43187a40a9a4a4289620ec0cf483e72e171b | |
parent | c0418609eb0864c9ee532d559858de22cc28fb3a [diff] |
Use is None rather than general boolean
diff --git a/Lib/cgi.py b/Lib/cgi.py index a7ad5bf..14ebeb9 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py
@@ -128,7 +128,7 @@ 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