Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4322c17

Browse files
committed
Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg
2 parents 0b6f6c8 + ffa4b2c commit 4322c17

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/urllib/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def quote_plus(string, safe='', encoding=None, errors=None):
707707
def quote_from_bytes(bs, safe='/'):
708708
"""Like quote(), but accepts a bytes object rather than a str, and does
709709
not perform string-to-bytes encoding. It always returns an ASCII string.
710-
quote_from_bytes(b'abc def\xab') -> 'abc%20def%AB'
710+
quote_from_bytes(b'abc def\x3f') -> 'abc%20def%3f'
711711
"""
712712
if not isinstance(bs, (bytes, bytearray)):
713713
raise TypeError("quote_from_bytes() expected bytes")

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ Core and Builtins
4444
Library
4545
-------
4646

47+
- Issue #14920: Fix the help(urllib.parse) failure on locale C on terminals.
48+
Have ascii characters in help.
49+
4750
- Issue #14548: Make multiprocessing finalizers check pid before
4851
running to cope with possibility of gc running just after fork.
4952

0 commit comments

Comments
 (0)