On Mon, Dec 9, 2013 at 9:15 AM, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote: > From: "Daniel P. Berrange" <berrange@xxxxxxxxxx> > > Call lower() directly on the string object instance, not > the class > > Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> > --- > 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 > > -- > libvir-list mailing list > libvir-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/libvir-list ACK. -- Doug Goldstein -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list