| 1 | Patch copied from Gentoo removing obsolete Python2 code.
|
| 2 |
|
| 3 | |
| 4 | |
| 5 | @@ -62,11 +62,6 @@
|
| 6 | try:
|
| 7 | func(self, *args, **kwargs)
|
| 8 | except UnexpectedCall as e:
|
| 9 | - # if this is not python3, use python2 syntax
|
| 10 | - if not hasattr(e, '__traceback__'):
|
| 11 | - from .python2 import reraise
|
| 12 | - reraise(
|
| 13 | - AssertionError, '\n\n' + str(e), sys.exc_info()[-1])
|
| 14 | exc = AssertionError('\n\n' + str(e))
|
| 15 | setattr(exc, '__traceback__', sys.exc_info()[-1])
|
| 16 | raise exc
|
| 17 | |
| 18 | |
| 19 | @@ -1,3 +0,0 @@
|
| 20 | -
|
| 21 | -def reraise(exc, msg, traceback):
|
| 22 | - raise exc, msg, traceback
|
| 23 | |
| 24 | |
| 25 | @@ -10,7 +10,6 @@
|
| 26 | chai/exception.py
|
| 27 | chai/expectation.py
|
| 28 | chai/mock.py
|
| 29 | -chai/python2.py
|
| 30 | chai/spy.py
|
| 31 | chai/stub.py
|
| 32 | chai.egg-info/PKG-INFO
|