[Python-checkins] r65166 - sandbox/trunk/ttk-gsoc/src/idlelib/editorpage.py

guilherme.polo python-checkins at python.org
Mon Jul 21 01:59:25 CEST 2008


Author: guilherme.polo
Date: Mon Jul 21 01:59:25 2008
New Revision: 65166

Log:
The color attribute has to be defined before the possible call to io.loadfile

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

Modified: sandbox/trunk/ttk-gsoc/src/idlelib/editorpage.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/editorpage.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/editorpage.py	Mon Jul 21 01:59:25 2008
@@ -59,6 +59,8 @@
 
         self.text = MultiCallCreator(Text)(parent_frame, **kwargs)
 
+        self.color = None # initialized in reset_colorizer
+
         self.per = Percolator(self.text)
         self.undo = self.editwin.UndoDelegator()
         self.per.insertfilter(self.undo)
@@ -74,7 +76,6 @@
                 self.io.set_filename(filename)
         self.saved_change_hook()
 
-        self.color = None # initialized below in reset_colorizer
         self.reset_colorizer()
 
         self._setup_bindings()


More information about the Python-checkins mailing list