spacepaste

  1.  
  2. trace = (
  3. traceback.TracebackException()
  4. .from_exception(
  5. exc,
  6. limit=limit,
  7. lookup_lines=lookup_lines,
  8. capture_locals=capture_locals,
  9. # copy the set of _seen exceptions so that duplicates
  10. # shared between sub-exceptions are not omitted
  11. _seen=set(_seen),
  12. )
  13. .something()
  14. .something_else()
  15. .something_even_longer()
  16. .more_things()
  17. .additional_thingies()
  18. .here_is()
  19. .the_end()
  20. )
  21.