summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-16 14:36:22 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-16 14:36:22 (GMT)
commit3d6575dfc85cd11473aa93a8219ac010a823919a (patch)
tree0320fc35a04c6020e24b7f98fc94250c21ac7b62 /Lib/urllib
parent2ad07c301e03a83294752dd3d30c99125c09106b (diff)
downloadcpython-3d6575dfc85cd11473aa93a8219ac010a823919a.zip
cpython-3d6575dfc85cd11473aa93a8219ac010a823919a.tar.gz
cpython-3d6575dfc85cd11473aa93a8219ac010a823919a.tar.bz2
Use true booleans.
Diffstat (limited to 'Lib/urllib')
-rw-r--r--Lib/urllib/parse.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
index 726e85f..a27b975 100644
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -329,7 +329,7 @@ def unquote(string, encoding='utf-8', errors='replace'):
res[-1] = b''.join(pct_sequence).decode(encoding, errors)
return ''.join(res)
-def parse_qs(qs, keep_blank_values=0, strict_parsing=0):
+def parse_qs(qs, keep_blank_values=False, strict_parsing=False):
"""Parse a query given as a string argument.
Arguments:
@@ -355,7 +355,7 @@ def parse_qs(qs, keep_blank_values=0, strict_parsing=0):
dict[name] = [value]
return dict
-def parse_qsl(qs, keep_blank_values=0, strict_parsing=0):
+def parse_qsl(qs, keep_blank_values=False, strict_parsing=False):
"""Parse a query given as a string argument.
Arguments:
@@ -509,7 +509,7 @@ def quote_from_bytes(bs, safe='/'):
_safe_quoters[cachekey] = quoter
return ''.join([quoter[char] for char in bs])
-def urlencode(query, doseq=0):
+def urlencode(query, doseq=False):
"""Encode a sequence of two-element tuples or dictionary into a URL query string.
If any values in the query arg are sequences and doseq is true, each