[Python-checkins] r74438 - in python/branches/tk_and_idle_maintenance/Lib/idlelib: PyShell.py run.py

guilherme.polo python-checkins at python.org
Fri Aug 14 00:20:41 CEST 2009


Author: guilherme.polo
Date: Fri Aug 14 00:20:40 2009
New Revision: 74438
Log:
Custom traceback.print_list (experimental).
Modified:
 python/branches/tk_and_idle_maintenance/Lib/idlelib/PyShell.py
 python/branches/tk_and_idle_maintenance/Lib/idlelib/run.py
Modified: python/branches/tk_and_idle_maintenance/Lib/idlelib/PyShell.py
==============================================================================
--- python/branches/tk_and_idle_maintenance/Lib/idlelib/PyShell.py	(original)
+++ python/branches/tk_and_idle_maintenance/Lib/idlelib/PyShell.py	Fri Aug 14 00:20:40 2009
@@ -31,6 +31,7 @@
 from UndoDelegator import UndoDelegator
 from OutputWindow import OutputWindow
 from configHandler import idleConf
+from utils import tb_print_list
 import idlever
 
 import rpc
@@ -707,9 +708,9 @@
 tblist = new_tb
 # Highlight only topmost exception
 first, rest = [tblist[0]], tblist[1:]
- traceback.print_list(first, file=sys.stderr)
+ tb_print_list(first, file=sys.stderr)
 if rest:
- traceback.print_list(rest, file=sys.stdout)
+ tb_print_list(rest, file=sys.stdout)
 lines = traceback.format_exception_only(typ, value)
 map(sys.stderr.write, lines)
 
Modified: python/branches/tk_and_idle_maintenance/Lib/idlelib/run.py
==============================================================================
--- python/branches/tk_and_idle_maintenance/Lib/idlelib/run.py	(original)
+++ python/branches/tk_and_idle_maintenance/Lib/idlelib/run.py	Fri Aug 14 00:20:40 2009
@@ -9,6 +9,7 @@
 
 import CallTips
 import AutoComplete
+from utils import tb_print_list
 
 import RemoteDebugger
 import RemoteObjectBrowser
@@ -167,9 +168,9 @@
 tbe = new_tbe
 # Highlight only topmost exception
 first, rest = [tbe[0]], tbe[1:]
- traceback.print_list(first, file=efile)
+ tb_print_list(first, file=efile)
 if rest:
- traceback.print_list(rest, file=sys.stdout)
+ tb_print_list(rest, file=sys.stdout)
 lines = traceback.format_exception_only(typ, val)
 for line in lines:
 print>>efile, line,


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /