]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bb.exceptions: add code to create pickleable traceback entries
authorChris Larson <chris_larson@mentor.com>
Thu, 5 May 2011 23:53:52 +0000 (16:53 -0700)
committerChris Larson <chris_larson@mentor.com>
Mon, 16 May 2011 19:39:41 +0000 (12:39 -0700)
commitad8ad3fcae29eafbdc09286984495d693a4b73ef
treecf83427c15bb4bb4b9b1135afbba2228b3599790
parentbf9391c60d8dd9eeaca87783cb874c56fa7a4e91
bb.exceptions: add code to create pickleable traceback entries

This lets you get as much useful information as possible from traceback
entries while staying pickleable.

In addition, it has improved traceback formatting.  It shows the values of the
arguments for the functions, lines of context from the file for the code, and
has an optional formatter to do things like syntax highlighting for the code
lines.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/bb/exceptions.py [new file with mode: 0644]