Re: [PATCH 02/10] python: generator: Don't print warning if nothing to warn about

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

 



On Wed, Jun 15, 2011 at 09:23:11PM -0400, Cole Robinson wrote:
> 
> Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
> ---
>  python/generator.py |    8 +++++---
>  1 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/python/generator.py b/python/generator.py
> index 39c3ca7..6ee0ada 100755
> --- a/python/generator.py
> +++ b/python/generator.py
> @@ -654,9 +654,11 @@ def buildStubs():
>  
>      print "Generated %d wrapper functions" % nb_wrap
>  
> -    print "Missing type converters: "
> -    for type in unknown_types.keys():
> -        print "%s:%d " % (type, len(unknown_types[type])),
> +    if unknown_types:
> +        print "Missing type converters: "
> +        for type in unknown_types.keys():
> +            print "%s:%d " % (type, len(unknown_types[type])),
> +
>      print

  ACK, man, that's old code :-)

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
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]