[libvirt] [PATCH python 14/14] sanitytest: remove use of string.lower()
Doug Goldstein
cardoe at gentoo.org
Mon Dec 9 18:20:59 UTC 2013
On Mon, Dec 9, 2013 at 9:15 AM, Daniel P. Berrange <berrange at redhat.com> wrote:
> 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
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
ACK.
--
Doug Goldstein
More information about the libvir-list
mailing list