projects
/
catalyst.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cleanup long lines, improve usage() output formatting slightly
[catalyst.git]
/
catalyst
/
util.py
1
"""
2
Collection of utility functions for catalyst
3
"""
4
5
import sys, traceback
6
7
def capture_traceback():
8
etype, value, tb = sys.exc_info()
9
s = [x.strip() for x in traceback.format_exception(etype, value, tb)]
10
return s
11
12
def print_traceback():
13
for x in capture_traceback():
14
print x