mirror of
https://github.com/openvswitch/ovs
synced 2025-10-19 14:37:21 +00:00
python: Start fixing some Python 3 issues.
This patch fixes just the Python 3 problems found by running: python3 setup.py install There are still many other issues to be fixed, but this is a start. Signed-off-by: Terry Wilson <twilson@redhat.com> [russell@ovn.org resolved conflicts with current master] Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
committed by
Russell Bryant
parent
ab2a3154f0
commit
3ab76c56d8
@@ -42,7 +42,7 @@ def from_json(json, symtab=None):
|
||||
if not uuidRE.match(s):
|
||||
raise error.Error("\"%s\" is not a valid UUID" % s, json)
|
||||
return uuid.UUID(s)
|
||||
except error.Error, e:
|
||||
except error.Error as e:
|
||||
if not symtab:
|
||||
raise e
|
||||
try:
|
||||
|
Reference in New Issue
Block a user