Index: Lib/idlelib/textView.py =================================================================== --- Lib/idlelib/textView.py (révision 79400) +++ Lib/idlelib/textView.py (copie de travail) @@ -62,11 +62,7 @@ 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',