[ovs-dev] [PATCH 3/9] python: Fix exception handler compatibility.

Ben Pfaff blp at ovn.org
Tue Jan 12 01:30:40 UTC 2016


On Wed, Jan 06, 2016 at 03:50:23PM -0500, Russell Bryant wrote:
> Python 3 dropped exception handlers of the deprecated form:
> 
>   except Exception, e:
> 
> You must use the newer syntax of:
> 
>   except Exception as e:
> 
> This patch also enables a flake8 warning for this.
> 
>   H231 Python 3.x incompatible 'except x,y:' construct
> 
> Signed-off-by: Russell Bryant <russell at ovn.org>

This has a patch conflict in Makefile.am when I try to apply it but at a
glance it looks fine.

> +# F*** -- warnings native to flake8

On a lot of software mailing lists people don't bother ***-ing out their
curse words, but we're a gentler lot here.

Acked-by: Ben Pfaff <blp at ovn.org>



More information about the dev mailing list