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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]