Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have...
authorSenthil Kumaran <senthil@uthcode.com>
Sat, 26 May 2012 01:53:32 +0000 (09:53 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Sat, 26 May 2012 01:53:32 +0000 (09:53 +0800)
Lib/urllib/parse.py
Misc/NEWS

index 528c0a7aafb1bcce85a6bbcc992f6da8960ac776..c0995dc010eb591636327a23b49cfa30d5fcdf34 100644 (file)
@@ -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")
index efec480d6dc3d6d19a164bdac6f0f0ed2b72118b..10b8ab175c1d6bcd2196d4bffd41f34dea13c562 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.