Skip to content

Instantly share code, notes, and snippets.

@redspider
Created May 23, 2013 11:47
Show Gist options
  • Save redspider/5635517 to your computer and use it in GitHub Desktop.
Save redspider/5635517 to your computer and use it in GitHub Desktop.
d = threadframe.dict()
for tid in d.keys():
st_list = traceback.format_stack(d[tid])
st = ''.join(st_list)
if not "waiter.acquire()" in st_list[-1]:
stack += "\nThread %d\n" % tid
stack += st
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment