1# Copyright (c) 2011 testtools developers. See LICENSE for details.
2
3"""Compatibility helpers that are valid syntax in Python 2.x.
4
5Only add things here if they *only* work in Python 2.x or are Python 2
6alternatives to things that *only* work in Python 3.x.
7"""
8
9__all__ = [
10    'reraise',
11    ]
12
13
14def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
15    """Re-raise an exception received from sys.exc_info() or similar."""
16    raise exc_class, exc_obj, exc_tb
17
18