def traces(trace, start=0, end=None):
'''
File "/private/var/acrisel/sand/gradior/gradior/gradior/gradior/loop_task.py", line 41, in task_wrapper
'''
result=[ "File \"%s\", line %s, in %s\n %s" % (frame.filename, frame.lineno, frame.function, frame.code_context[0].rstrip()) for frame in trace]
return result
评论列表
文章目录