[PATCH 1 of 2] py3: conditionalize the raise statement
Martijn Pieters
mj at zopatista.com
Mon Aug 15 10:08:38 UTC 2016
On 12 August 2016 at 19:16, Pulkit Goyal <7895pulkit at gmail.com> wrote:
> I tried this but unfortunately test-bundle2-format.t fails.
Ah, yes, I was wrong. I should have known this; raising a tuple only
takes the first element (recursively, until an Exception class is
found). So so, there is no way around this other than using `exec`.
Bah, humbug. The Python 3 line can still be simplified however:
raise exc_info[1]
is enough for that specific case; this time I actually ran the tests
and test-bundle2-format.t passes on Python 3.5.
--
Martijn Pieters
More information about the Mercurial-devel
mailing list