From: Benjamin Peterson Date: Tue, 29 Oct 2013 19:27:14 +0000 (-0400) Subject: backport #19426 X-Git-Tag: v2.7.6~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e18b82d996e442bbaee19b1016934fe33a89efa3;p=thirdparty%2FPython%2Fcpython.git backport #19426 --- diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 2eae11b5411b..f6de4409ddaa 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 f1d5e213e86f..66a0f3ed2cad 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? ===============================================