]> granicus.if.org Git - python/commitdiff
backport #19426
authorBenjamin Peterson <benjamin@python.org>
Tue, 29 Oct 2013 19:27:14 +0000 (15:27 -0400)
committerBenjamin Peterson <benjamin@python.org>
Tue, 29 Oct 2013 19:27:14 +0000 (15:27 -0400)
Lib/idlelib/IOBinding.py
Misc/NEWS

index 2eae11b5411bcdeea982ea899b0ce7d9fa5fdac6..f6de4409ddaa3d74f80ec9fc49a965af94801a4d 100644 (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:
index f1d5e213e86f50df88f124c4220d630f09b13db4..66a0f3ed2cad75863ce56618f5f88dd14602c6ba 100644 (file)
--- 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?
 ===============================================