extract-ofp-errors: Make Python 3 compatible.
authorDamien Millescamps <damien.millescamps@6wind.com>
Fri, 22 Mar 2013 18:48:15 +0000 (19:48 +0100)
committerBen Pfaff <blp@nicira.com>
Fri, 22 Mar 2013 20:01:23 +0000 (13:01 -0700)
commitf4d90e0d040d8ee0bcb1ce44f680fa921f09f2b6
tree6d008d65d27dedb65901d89c477bf122b654d0c7
parent5c8baf15b5887995167a2417926c6d700fa1f497
extract-ofp-errors: Make Python 3 compatible.

extract-ofp-errors doesn't work with python 3 for the
following reasons:

- several "SyntaxError: invalid syntax":
  print not a keyword anymore. As a function it requires '()'
- AttributeError: 'dict' object has no attribute 'itervalues'
  Use values() instead.

Test done:
Generate using ofp-errors.inc as a reference
Patch for python 3, then regenerate ofp-errors.inc
Diff between the two outputs.

Signed-off-by: Damien Millescamps <damien.millescamps@6wind.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
build-aux/extract-ofp-errors