summaryrefslogtreecommitdiff
path: root/ofproto/ipfix-gen-entities
diff options
context:
space:
mode:
authorRussell Bryant <russell@ovn.org>2016-01-06 13:48:16 -0500
committerRussell Bryant <russell@ovn.org>2016-01-12 11:47:33 -0500
commitf3068bff92dc4fb76ee4aab149990f2492bcbc24 (patch)
tree0c85f773d245b6f60c91872f8b2db2cf9459dde9 /ofproto/ipfix-gen-entities
parent66d61c90a79db159cc43e3f17c57d83d9a99453f (diff)
downloadopenvswitch-f3068bff92dc4fb76ee4aab149990f2492bcbc24.tar.gz
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>
Diffstat (limited to 'ofproto/ipfix-gen-entities')
-rwxr-xr-xofproto/ipfix-gen-entities2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/ipfix-gen-entities b/ofproto/ipfix-gen-entities
index 11d2aaf9a..54951b63d 100755
--- a/ofproto/ipfix-gen-entities
+++ b/ofproto/ipfix-gen-entities
@@ -114,7 +114,7 @@ if __name__ == '__main__':
try:
options, args = getopt.gnu_getopt(sys.argv[1:], 'hV',
['help', 'version'])
- except getopt.GetoptError, geo:
+ except getopt.GetoptError as geo:
sys.stderr.write('%s: %s\n' % (sys.argv[0], geo.msg))
sys.exit(1)