Issue #19426: Fixed the opening of Python source file with specified encoding.

This commit is contained in:
Serhiy Storchaka 2013-10-29 10:15:09 +02:00
parent 712e951f54
commit 1c760cab1d
2 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

@ -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?
===============================================