diff -r 6ccb04c4cbae Lib/urllib/parse.py --- a/Lib/urllib/parse.py Fri Sep 28 01:15:39 2012 -0700 +++ b/Lib/urllib/parse.py Fri Sep 28 12:17:08 2012 +0100 @@ -737,7 +737,7 @@ return ''.join([quoter(char) for char in bs]) def urlencode(query, doseq=False, safe='', encoding=None, errors=None): - """Encode a sequence of two-element tuples or dictionary into a URL query string. + """Encode a dict or sequence of two-element tuples into a URL query string. If any values in the query arg are sequences and doseq is true, each sequence element is converted to a separate parameter. @@ -746,9 +746,9 @@ parameters in the output will match the order of parameters in the input. - The query arg may be either a string or a bytes type. When query arg is a - string, the safe, encoding and error parameters are sent the quote_plus for - encoding. + The components of a query arg may each be either a string or a bytes type. + When a component is a string, the safe, encoding and error parameters are + sent the quote_plus for encoding. """ if hasattr(query, "items"):