Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d6f01783
Commit
d6f01783
authored
Sep 05, 2013
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve urlencode docstring. Patch by Brian Brazil.
parent
1cc1b599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/urllib/parse.py
Lib/urllib/parse.py
+4
-4
No files found.
Lib/urllib/parse.py
View file @
d6f01783
...
...
@@ -728,7 +728,7 @@ def quote_from_bytes(bs, safe='/'):
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.
...
...
@@ -737,9 +737,9 @@ def urlencode(query, doseq=False, safe='', encoding=None, errors=None):
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 to the quote_plus function for
encoding.
"""
if
hasattr
(
query
,
"items"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment