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
870f09a7
Commit
870f09a7
authored
Jun 17, 2010
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8203: Fix IDLE Credits dialog: view_file() uses its encoding argument.
parent
7c9627b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Lib/idlelib/textView.py
Lib/idlelib/textView.py
+1
-5
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/textView.py
View file @
870f09a7
...
...
@@ -62,11 +62,7 @@ def view_text(parent, title, text):
def
view_file
(
parent
,
title
,
filename
,
encoding
=
None
):
try
:
if
encoding
:
import
codecs
textFile
=
codecs
.
open
(
filename
,
'r'
)
else
:
textFile
=
open
(
filename
,
'r'
)
textFile
=
open
(
filename
,
'r'
,
encoding
=
encoding
)
except
IOError
:
import
tkinter.messagebox
as
tkMessageBox
tkMessageBox
.
showerror
(
title
=
'File Load Error'
,
...
...
Misc/NEWS
View file @
870f09a7
...
...
@@ -2047,6 +2047,8 @@ Installation
Library
-------
- Issue #8203: Fix IDLE Credits dialog: view_file() uses its encoding argument.
- Issue #5311: bdist_msi can now build packages that do not depend on a
specific Python version.
...
...
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