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 | 6d991ee5d29f4a9aa6636fa9ed8ffbbe21339b0a (patch) | |
tree | bf28035d63b37d79b0ec752aa8a80828e0fdcbd3 | |
parent | 9756e429f667487ef68375c25eeb9bb51078e9c6 (diff) | |
download | libvirt-python-v6-6d991ee5d29f4a9aa6636fa9ed8ffbbe21339b0a.tar.gz libvirt-python-v6-6d991ee5d29f4a9aa6636fa9ed8ffbbe21339b0a.tar.xz libvirt-python-v6-6d991ee5d29f4a9aa6636fa9ed8ffbbe21339b0a.zip |
python: generator: Don't print warning if nothing to warn about
-rwxr-xr-x | generator.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generator.py b/generator.py index cf5ceb5..2c8fd69 100755 --- a/generator.py +++ b/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: |