dabo Commit
Revision 2176
Date: 2006-05-25 05:12:00 -0700 (Thu, 25 May 2006)
Author: ed
Changed:
U trunk/dabo/ui/uiwx/dEditor.py
Log:
Fixed a problem with sys.stdout and sys.stderr not being restored during
Intellisense processing if the code in question contained an error. Tracker
#0143.
Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py 2006-05-24 12:14:24 UTC (rev 2175)
+++ trunk/dabo/ui/uiwx/dEditor.py 2006-05-25 12:12:00 UTC (rev 2176)
@@ -1346,17 +1346,20 @@
class IC(code.InteractiveConsole):
def write(self, string):
pass
-
+
ic = IC(self._namespaces)
for lineNum in range(self.LineNumber + 1):
line = self.GetLine(lineNum).rstrip()
- ic.push(line)
+ try:
+ ic.push(line)
+ except StandardError, e: pass
sys.stderr, sys.stdout = stdErr, stdOut
-
+
def _getColumn(self):
return self.GetColumn(self.GetCurrentPos())
+
def _setColumn(self, val):
val = max(0, val)
currPos = self.GetCurrentPos()
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev