s3:libsmb: remove unused 'inbuf' variable
[Samba/gebeck_regimport.git] / lib / testtools / testtools / _compat3x.py
blobf3d569662dab150ec6402e6684d2a94955c87a96
1 # Copyright (c) 2011 testtools developers. See LICENSE for details.
3 """Compatibility helpers that are valid syntax in Python 3.x.
5 Only add things here if they *only* work in Python 3.x or are Python 3
6 alternatives to things that *only* work in Python 2.x.
7 """
9 __all__ = [
10 'reraise',
14 def 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.args).with_traceback(exc_tb)