Kaydet (Commit) 870f09a7 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #8203: Fix IDLE Credits dialog: view_file() uses its encoding argument.

üst 7c9627b4
......@@ -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',
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment