[Python-checkins] r65571 - sandbox/trunk/ttk-gsoc/src/idlelib/IOBinding.py

guilherme.polo python-checkins at python.org
Thu Aug 7 15:51:51 CEST 2008


Author: guilherme.polo
Date: Thu Aug  7 15:51:51 2008
New Revision: 65571

Log:
Due to the just changed FileList, these checkings for creating a new tab are not needed anymore

Modified:
   sandbox/trunk/ttk-gsoc/src/idlelib/IOBinding.py

Modified: sandbox/trunk/ttk-gsoc/src/idlelib/IOBinding.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/IOBinding.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/IOBinding.py	Thu Aug  7 15:51:51 2008
@@ -220,16 +220,8 @@
                     self.editwin.flist.open(filename, self.loadfile)
                 else:
                     if idleConf.GetOption('main', 'EditorWindow',
-                        'file-in-tab', default=1, type='bool'):
-                        if interp:
-                            # this is a PyShell, force file to be opened in a
-                            # new window
-                            action = None
-                        else:
-                            action = self.editwin.new_tab
-                    else:
-                        action = None
-                    self.editwin.flist.open(filename, action)
+                       'file-in-tab', default=1, type='bool'):
+                        self.editwin.flist.open(filename)
             else:
                 self.text.focus_set()
             return "break"


More information about the Python-checkins mailing list