projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4071e24
)
ovs.ovsuuid: Fix UUID.cInitUUID invocation of re.match with too few params.
author
Ben Pfaff
<blp@nicira.com>
Thu, 25 Aug 2011 00:07:32 +0000
(17:07 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 25 Aug 2011 18:07:23 +0000
(11:07 -0700)
Found by pychecker.
python/ovs/ovsuuid.py
patch
|
blob
|
history
diff --git
a/python/ovs/ovsuuid.py
b/python/ovs/ovsuuid.py
index 8a76d3a7f6386fbf272c97fc79033385c908c487..5d2785cc8f14103021341dc11a8bbdc815e144d7 100644
(file)
--- 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)),