[libvirt] [PATCH python 14/14] sanitytest: remove use of string.lower()

Daniel P. Berrange berrange at redhat.com
Mon Dec 9 15:15:49 UTC 2013


From: "Daniel P. Berrange" <berrange at redhat.com>

Call lower() directly on the string object instance, not
the class

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 sanitytest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sanitytest.py b/sanitytest.py
index 50e4069..363507b 100644
--- a/sanitytest.py
+++ b/sanitytest.py
@@ -201,8 +201,8 @@ for name in sorted(basicklassmap):
         klass = "virDomain"
         func = "snapshot" + func
 
-    # Names should stsart with lowercase letter...
-    func = string.lower(func[0:1]) + func[1:]
+    # Names should start with lowercase letter...
+    func = func[0:1].lower() + func[1:]
     if func[0:8] == "nWFilter":
         func = "nwfilter" + func[8:]
 
-- 
1.8.3.1




More information about the libvir-list mailing list