From: Serhiy Storchaka Date: Tue, 29 Oct 2013 08:15:09 +0000 (+0200) Subject: Issue #19426: Fixed the opening of Python source file with specified encoding. X-Git-Tag: v2.7.8~322 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c760cab1d85061828d954691eeb3537154ad679;p=python Issue #19426: Fixed the opening of Python source file with specified encoding. --- 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 c8cf58585c..f3b979931b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,11 @@ Core and Builtins Library ------- +IDLE +---- + +- Issue #19426: Fixed the opening of Python source file with specified encoding. + What's New in Python 2.7.6 release candidate 1? ===============================================