[Python-checkins] cpython (3.5): Issue #27365: Allow non-ascii in idlelib/NEWS.txt - minimal part for 3.5.2.

terry.reedy python-checkins at python.org
Wed Jun 22 03:57:54 EDT 2016


https://hg.python.org/cpython/rev/783dfd77e4c1
changeset: 102127:783dfd77e4c1
branch: 3.5
parent: 102124:cae0b7ffeb9f
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Wed Jun 22 03:55:20 2016 -0400
summary:
 Issue #27365: Allow non-ascii in idlelib/NEWS.txt - minimal part for 3.5.2.
files:
 Lib/idlelib/NEWS.txt | 4 ++--
 Lib/idlelib/aboutDialog.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -30,7 +30,7 @@
 Original patch by Saimadhav Heblikar.
 
 - Issue #18410: Add test for IDLE's search dialog.
- Original patch by Westley Martínez.
+ Original patch by Westley Martínez.
 
 - Issue #21703: Add test for undo delegator.
 Original patch by Saimadhav Heblikar .
@@ -48,7 +48,7 @@
 - Issue #25507: fix incorrect change in IOBinding that prevented printing.
 Augment IOBinding htest to include all major IOBinding functions.
 
-- Issue #25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION
+- Issue #25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION
 MARK in README.txt and open this and NEWS.txt with 'ascii'.
 Re-encode CREDITS.txt to utf-8 and open it with 'utf-8'.
 
diff --git a/Lib/idlelib/aboutDialog.py b/Lib/idlelib/aboutDialog.py
--- a/Lib/idlelib/aboutDialog.py
+++ b/Lib/idlelib/aboutDialog.py
@@ -130,7 +130,7 @@
 self.display_file_text('About - Readme', 'README.txt', 'ascii')
 
 def ShowIDLENEWS(self):
- self.display_file_text('About - NEWS', 'NEWS.txt', 'ascii')
+ self.display_file_text('About - NEWS', 'NEWS.txt', 'utf-8')
 
 def display_printer_text(self, title, printer):
 printer._Printer__setup()
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /