> On Sun, Nov 3, 2019 at 11:50 PM Daniel Shahaf <d...@daniel.shahaf.name>
wrote:
> We could do:
>
>    try:
>        # py3
>        eval("raise MessageSendFailure from detail")
>    except SyntaxError:
>        # py2
>        raise MessageSendFailure

Neat trick!

> Or we could just keep the «raise … from» construct in there,
unconditional, and
> bump the script's minimum Python version to 3 on trunk.  Analysis:

Hmmm...

I'll commit the 'finally' block fix, since that's a separate
issue entirely and deserves its own commit.

Yasuhito points out that there are other issues to fix to support
Py3 in mailer.py.

So before I rush to change the 'raise .. from' lines, I'll wait until
we decide which way to go with the required Python version.

Nathan

Reply via email to