diff -r 40e1be1e0707 Lib/idlelib/EditorWindow.py --- a/Lib/idlelib/EditorWindow.py Sat Jan 14 15:45:13 2012 -0800 +++ b/Lib/idlelib/EditorWindow.py Sat Jan 14 23:00:08 2012 -0600 @@ -259,18 +259,13 @@ # IOBinding implements file I/O and printing functionality self.io = io = self.IOBinding(self) io.set_filename_change_hook(self.filename_change_hook) - self.good_load = False self.set_indentation_params(False) self.color = None # initialized below in self.ResetColorizer if filename: if os.path.exists(filename) and not os.path.isdir(filename): if io.loadfile(filename): - self.good_load = True is_py_src = self.ispythonsource(filename) self.set_indentation_params(is_py_src) - if is_py_src: - self.color = color = self.ColorDelegator() - per.insertfilter(color) else: io.set_filename(filename) self.ResetColorizer() diff -r 40e1be1e0707 Lib/idlelib/FileList.py --- a/Lib/idlelib/FileList.py Sat Jan 14 15:45:13 2012 -0800 +++ b/Lib/idlelib/FileList.py Sat Jan 14 23:00:08 2012 -0600 @@ -33,12 +33,7 @@ # Don't create window, perform 'action', e.g. open in same window return action(filename) else: - edit = self.EditorWindow(self, filename, key) - if edit.good_load: - return edit - else: - edit._close() - return None + return self.EditorWindow(self, filename, key) def gotofileline(self, filename, lineno=None): edit = self.open(filename)