From e18b82d996e442bbaee19b1016934fe33a89efa3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 29 Oct 2013 15:27:14 -0400 Subject: [PATCH] backport #19426 --- Lib/idlelib/IOBinding.py | 2 +- Misc/NEWS | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 2eae11b541..f6de4409dd 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -125,7 +125,7 @@ def coding_spec(str): Raise LookupError if the encoding is declared but unknown. """ # Only consider the first two lines - str = str.split("\n", 2)[:2] + lst = str.split("\n", 2)[:2] for line in lst: match = coding_re.match(line) if match is not None: diff --git a/Misc/NEWS b/Misc/NEWS index f1d5e213e8..66a0f3ed2c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -1,6 +1,17 @@ Python News +++++++++++ +Whats' New in Python 2.7.6? +=========================== + +*Release date: 2013-11-02* + +IDLE +---- + +- Issue #19426: Fixed the opening of Python source file with specified encoding. + + What's New in Python 2.7.6 release candidate 1? =============================================== -- 2.50.1