Re: [PATCH python 13/14] sanitytest: Fix broken comparison between int and string

[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>
>
> Python2 was forgiving of a comparison between an int and string
> but Python3 gets very upset.
>
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  sanitytest.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sanitytest.py b/sanitytest.py
> index eb4caee..50e4069 100644
> --- a/sanitytest.py
> +++ b/sanitytest.py
> @@ -103,7 +103,7 @@ for cname in wantfunctions:
>                  found = True
>                  if name not in basicklassmap:
>                      basicklassmap[name] = [klassname, name[klen:], cname]
> -                elif len(basicklassmap[name]) < klassname:
> +                elif len(basicklassmap[name]) < klen:
>                      basicklassmap[name] = [klassname, name[klen:], cname]
>
>          # Anything which can't map to a class goes into the
> --
> 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]