python: Fix exception handler compatibility.
authorRussell Bryant <russell@ovn.org>
Wed, 6 Jan 2016 18:48:16 +0000 (13:48 -0500)
committerRussell Bryant <russell@ovn.org>
Tue, 12 Jan 2016 16:47:33 +0000 (11:47 -0500)
commitf3068bff92dc4fb76ee4aab149990f2492bcbc24
tree0c85f773d245b6f60c91872f8b2db2cf9459dde9
parent66d61c90a79db159cc43e3f17c57d83d9a99453f
python: Fix exception handler compatibility.

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@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Makefile.am
debian/ovs-monitor-ipsec
ofproto/ipfix-gen-entities
tests/test-json.py
tests/test-ovsdb.py
utilities/ovs-pcap.in
xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync