Mercurial > cpython-lru_cache-weakref
diff Lib/cgi.py @ 23609:456d58451fee legacy-trunk
Use is None rather than general boolean
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Fri, 31 May 2002 23:54:44 +0000 |
| parents | a9dd5e6d6805 |
| children | a1de0bab5475 |
line wrap: on
line diff
--- a/Lib/cgi.py Fri May 31 23:03:33 2002 +0000 +++ b/Lib/cgi.py Fri May 31 23:54:44 2002 +0000 @@ -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
