[libvirt] [PATCH python 13/14] sanitytest: Fix broken comparison between int and string
Daniel P. Berrange
berrange at redhat.com
Mon Dec 9 15:15:48 UTC 2013
From: "Daniel P. Berrange" <berrange at redhat.com>
Python2 was forgiving of a comparison between an int and string
but Python3 gets very upset.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
sanitytest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sanitytest.py b/sanitytest.py
index eb4caee..50e4069 100644
--- a/sanitytest.py
+++ b/sanitytest.py
@@ -103,7 +103,7 @@ for cname in wantfunctions:
found = True
if name not in basicklassmap:
basicklassmap[name] = [klassname, name[klen:], cname]
- elif len(basicklassmap[name]) < klassname:
+ elif len(basicklassmap[name]) < klen:
basicklassmap[name] = [klassname, name[klen:], cname]
# Anything which can't map to a class goes into the
--
1.8.3.1
More information about the libvir-list
mailing list