summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-05 07:22:05 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-05 07:22:05 (GMT)
commit3eb554fc828c812a31c1a3cd9f619eacbb708010 (patch)
tree8f949a481d0170358d6d06ea577d0ce766383d15 /Misc
parent423f1282b3476e2e58b6631632f2521b80f556c7 (diff)
downloadcpython-3eb554fc828c812a31c1a3cd9f619eacbb708010.zip
cpython-3eb554fc828c812a31c1a3cd9f619eacbb708010.tar.gz
cpython-3eb554fc828c812a31c1a3cd9f619eacbb708010.tar.bz2
Issue #22221: Backported fixes from Python 3 (issue #18960).
* Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. This affects compile(), eval() and exec() too. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS10
1 files changed, 10 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e50de99..91e1db4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 2.7.9?
Core and Builtins
-----------------
+- Issue #22221: Now the source encoding declaration on the second line isn't
+ effective if the first line contains anything except a comment.
+
- Issue #22023: Fix ``%S``, ``%R`` and ``%V`` formats of
:c:func:`PyUnicode_FromFormat`.
@@ -124,6 +127,9 @@ _ Issue #21597: The separator between the turtledemo text pane and the drawing
IDLE
----
+- Issue #22221: IDLE now ignores the source encoding declaration on the second
+ line if the first line contains anything except a comment.
+
- Issue #17390: Adjust Editor window title; remove 'Python',
move version to end.
@@ -140,6 +146,10 @@ Extension Modules
Tools/Demos
-----------
+- Issue #22221: 2to3 and the findnocoding.py script now ignore the source
+ encoding declaration on the second line if the first line contains anything
+ except a comment.
+
- Issue #22201: Command-line interface of the zipfile module now correctly
extracts ZIP files with directory entries. Patch by Ryan Wilson.