Commit e18b82d9 authored by Benjamin Peterson's avatar Benjamin Peterson

backport #19426

parent b6a985eb
......@@ -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:
......
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?
===============================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment