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
ffa4b2c0
Commit
ffa4b2c0
authored
May 26, 2012
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg
parent
54454e7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Lib/urllib/parse.py
Lib/urllib/parse.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/urllib/parse.py
View file @
ffa4b2c0
...
...
@@ -707,7 +707,7 @@ def quote_plus(string, safe='', encoding=None, errors=None):
def
quote_from_bytes
(
bs
,
safe
=
'/'
):
"""Like quote(), but accepts a bytes object rather than a str, and does
not perform string-to-bytes encoding. It always returns an ASCII string.
quote_from_bytes(b'abc def
\
x
ab
') -> 'abc%20def%AB
'
quote_from_bytes(b'abc def
\
x
3f
') -> 'abc%20def%3f
'
"""
if
not
isinstance
(
bs
,
(
bytes
,
bytearray
)):
raise
TypeError
(
"quote_from_bytes() expected bytes"
)
...
...
Misc/NEWS
View file @
ffa4b2c0
...
...
@@ -67,6 +67,9 @@ Core and Builtins
Library
-------
- Issue #14920: Fix the help(urllib.parse) failure on locale C on terminals.
Have ascii characters in help.
- Issue #14863: Update the documentation of os.fdopen() to reflect the
fact that it's only a thin wrapper around open() anymore.
...
...
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