From ffa4b2c037b4e2b101b24927ae30ef2fd08c839e Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Sat, 26 May 2012 09:53:32 +0800 Subject: Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg --- Lib/urllib/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/urllib/parse.py') diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index 528c0a7aaf..c0995dc010 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -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\xab') -> 'abc%20def%AB' + quote_from_bytes(b'abc def\x3f') -> 'abc%20def%3f' """ if not isinstance(bs, (bytes, bytearray)): raise TypeError("quote_from_bytes() expected bytes") -- cgit v1.2.1