summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-07-05 12:30:41 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-07-05 12:30:41 (GMT)
commit91e08772a6da22166a2ad4ee52fecaf80df9e5e9 (patch)
treea175288f0a1ebe6839f2022cab7750bb31bb6e77 /Misc/NEWS
parent2cfb6f3aa086b1f500516372f7179f10c123a777 (diff)
downloadcpython-91e08772a6da22166a2ad4ee52fecaf80df9e5e9.zip
cpython-91e08772a6da22166a2ad4ee52fecaf80df9e5e9.tar.gz
cpython-91e08772a6da22166a2ad4ee52fecaf80df9e5e9.tar.bz2
Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support Python
scripts using a encoding different than UTF-8 (read the coding cookie of the script).
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index ae0ed58..0bc7cd7 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,10 @@ Library
- Issue #12467: warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.
+- Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support
+ Python scripts using a encoding different than UTF-8 (read the coding cookie
+ of the script).
+
- Issue #12451: pydoc: importfile() now opens the Python script in binary mode,
instead of text mode using the locale encoding, to avoid encoding issues.