mirror of
https://github.com/python/cpython.git
synced 2025-10-13 02:13:03 +00:00
Use is None rather than general boolean
This commit is contained in:
parent
c0418609eb
commit
a144900b86
1 changed files with 1 additions and 1 deletions
|
@ -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 false (the default), errors are silently ignored.
|
||||||
If true, errors raise a ValueError exception.
|
If true, errors raise a ValueError exception.
|
||||||
"""
|
"""
|
||||||
if not fp:
|
if fp is None:
|
||||||
fp = sys.stdin
|
fp = sys.stdin
|
||||||
if not environ.has_key('REQUEST_METHOD'):
|
if not environ.has_key('REQUEST_METHOD'):
|
||||||
environ['REQUEST_METHOD'] = 'GET' # For testing stand-alone
|
environ['REQUEST_METHOD'] = 'GET' # For testing stand-alone
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue