diff options
author | Cole Robinson <crobinso@redhat.com> | 2011-06-15 17:57:37 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2011-06-20 14:10:45 -0400 |
commit | eb3151b41156336acd9ffe812e6cba7a59d365df (patch) | |
tree | bae3b3b0ccfd38ca0dd3023dbf850c392deba116 | |
parent | python: libvirt-override: use simpler debug (diff) | |
download | libvirt-eb3151b41156336acd9ffe812e6cba7a59d365df.tar.gz libvirt-eb3151b41156336acd9ffe812e6cba7a59d365df.tar.bz2 libvirt-eb3151b41156336acd9ffe812e6cba7a59d365df.zip |
python: generator: Don't print warning if nothing to warn about
-rwxr-xr-x | python/generator.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/python/generator.py b/python/generator.py index cf5ceb5f8..2c8fd69d4 100755 --- a/python/generator.py +++ b/python/generator.py @@ -655,9 +655,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 for f in functions_failed: |