Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython (merge 3.2 -> default): Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

May 25, 2012, 6:55 PM

Post #1 of 1 (47 views)
Permalink
cpython (merge 3.2 -> default): Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just

http://hg.python.org/cpython/rev/cb62c958dd6a
changeset: 77150:cb62c958dd6a
parent: 77148:0189b9d2d6bc
parent: 77149:ea25ce432343
user: Senthil Kumaran <senthil [at] uthcode>
date: Sat May 26 09:55:28 2012 +0800
summary:
Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg

files:
Lib/urllib/parse.py | 2 +-
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -707,7 +707,7 @@
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")
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -44,6 +44,9 @@
Library
-------

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


--
Repository URL: http://hg.python.org/cpython

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.