summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-08-24 17:07:32 -0700
committerBen Pfaff <blp@nicira.com>2011-08-25 11:07:23 -0700
commitfecf78c23793567f39f11e3c203fbded0b86c3a2 (patch)
tree03764288164cefacae6a0fb22365b33ac0a7fa10
parent4071e24db4a72275e87400e5b7366a0757ec3ae7 (diff)
downloadopenvswitch-fecf78c23793567f39f11e3c203fbded0b86c3a2.tar.gz
ovs.ovsuuid: Fix UUID.cInitUUID invocation of re.match with too few params.
Found by pychecker.
-rw-r--r--python/ovs/ovsuuid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/ovs/ovsuuid.py b/python/ovs/ovsuuid.py
index 8a76d3a7f..5d2785cc8 100644
--- a/python/ovs/ovsuuid.py
+++ b/python/ovs/ovsuuid.py
@@ -66,7 +66,7 @@ class UUID(uuid.UUID):
return ["uuid", str(self)]
def cInitUUID(self, var):
- m = re.match(str(self))
+ m = UUID.uuidRE.match(str(self))
return ["%s.parts[0] = 0x%s;" % (var, m.group(1)),
"%s.parts[1] = 0x%s%s;" % (var, m.group(2), m.group(3)),
"%s.parts[2] = 0x%s%s;" % (var, m.group(4), m.group(5)),