Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1c760cab
Commit
1c760cab
authored
Oct 29, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19426: Fixed the opening of Python source file with specified encoding.
parent
712e951f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Lib/idlelib/IOBinding.py
Lib/idlelib/IOBinding.py
+1
-1
Misc/NEWS
Misc/NEWS
+5
-0
No files found.
Lib/idlelib/IOBinding.py
View file @
1c760cab
...
...
@@ -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:
...
...
Misc/NEWS
View file @
1c760cab
...
...
@@ -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
?
===============================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment