2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 22:35:15 +00:00

ovs.ovsuuid: Fix UUID.cInitUUID invocation of re.match with too few params.

Found by pychecker.
This commit is contained in:
Ben Pfaff
2011-08-24 17:07:32 -07:00
parent 4071e24db4
commit fecf78c237

View File

@@ -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)),