[Python-checkins] r74830 - python/branches/py3k/Lib/urllib/parse.py
georg.brandl
python-checkins at python.org
Wed Sep 16 16:36:22 CEST 2009
Author: georg.brandl
Date: Wed Sep 16 16:36:22 2009
New Revision: 74830
Log:
Use true booleans.
Modified:
python/branches/py3k/Lib/urllib/parse.py
Modified: python/branches/py3k/Lib/urllib/parse.py
==============================================================================
--- python/branches/py3k/Lib/urllib/parse.py (original)
+++ python/branches/py3k/Lib/urllib/parse.py Wed Sep 16 16:36:22 2009
@@ -329,7 +329,7 @@
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 @@
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 @@
_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
More information about the Python-checkins
mailing list