[Python-checkins] cpython (2.7): Issue #19426: Fixed the opening of Python source file with specified encoding.
serhiy.storchaka
python-checkins at python.org
Tue Oct 29 09:15:24 CET 2013
http://hg.python.org/cpython/rev/7fde94ad5df4
changeset: 86732:7fde94ad5df4
branch: 2.7
parent: 86726:6b2352f1d365
user: Serhiy Storchaka <storchaka at gmail.com>
date: Tue Oct 29 10:15:09 2013 +0200
summary:
Issue #19426: Fixed the opening of Python source file with specified encoding.
files:
Lib/idlelib/IOBinding.py | 2 +-
Misc/NEWS | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py
--- a/Lib/idlelib/IOBinding.py
+++ b/Lib/idlelib/IOBinding.py
@@ -125,7 +125,7 @@
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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,11 @@
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?
===============================================
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list