commit | 1c760cab1d85061828d954691eeb3537154ad679 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Oct 29 10:15:09 2013 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Tue Oct 29 10:15:09 2013 +0200 |
tree | cc541e0db0309f61e7c899b6c6c8da6c94645672 | |
parent | 712e951f549145420fc867caab081ace811b3a2a [diff] [blame] |
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 2eae11b..f6de440 100644 --- 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: