NewsBlur-viq/vendor/readability/compat/two.py

7 lines
275 B
Python
Raw Normal View History

def raise_with_traceback(exc_type, traceback, *args, **kwargs):
"""
Raise a new exception of type `exc_type` with an existing `traceback`. All
additional (keyword-)arguments are forwarded to `exc_type`
"""
raise exc_type(*args, **kwargs), None, traceback