Debug: Only show self's class name in tracebacks.

This commit is contained in:
David Vierra 2012-11-28 19:04:26 -10:00
parent 3744b040d6
commit 5d102c794f

View File

@ -53,7 +53,7 @@ def extract_tb(tb, limit=None):
name = co.co_name name = co.co_name
self = f.f_locals.get('self') self = f.f_locals.get('self')
try: try:
selfstr = self and "(self={0})".format(self) or " " selfstr = self and "(self is a {0})".format(self.__class__.__name__) or " "
except: except:
selfstr = " " selfstr = " "
traceback.linecache.checkcache(filename) traceback.linecache.checkcache(filename)