From d499f4a7c1624b80479f8f3c4ab4270a77655ee5 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 9 Dec 2013 15:12:25 +0000 Subject: [PATCH] sanitytest: remove use of string.lower() Call lower() directly on the string object instance, not the class Signed-off-by: Daniel P. Berrange --- 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:]