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
f0feec2c
Commit
f0feec2c
authored
May 21, 2010
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8774: tabnanny uses the encoding cookie (#coding:...) to use the correct
encoding
parent
b5218771
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Lib/tabnanny.py
Lib/tabnanny.py
+4
-1
Misc/NEWS
Misc/NEWS
+4
-1
No files found.
Lib/tabnanny.py
View file @
f0feec2c
...
...
@@ -93,8 +93,11 @@ def check(file):
check
(
fullname
)
return
with
open
(
file
,
'rb'
)
as
f
:
encoding
,
lines
=
tokenize
.
detect_encoding
(
f
.
readline
)
try
:
f
=
open
(
file
)
f
=
open
(
file
,
encoding
=
encoding
)
except
IOError
as
msg
:
errprint
(
"%r: I/O Error: %s"
%
(
file
,
msg
))
return
...
...
Misc/NEWS
View file @
f0feec2c
...
...
@@ -375,7 +375,10 @@ C-API
Library
-------
- Issue #4870: Add an `options` attribute to SSL contexts, as well as
- Issue #8774: tabnanny uses the encoding cookie (#coding:...) to use the
correct encoding
- Issue #4870: Add an `options` attribute to SSL contexts, as well as
several ``OP_*`` constants to the `ssl` module. This allows to selectively
disable protocol versions, when used in combination with `PROTOCOL_SSLv23`.
...
...
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