]> xenbits.xensource.com Git - libvirt.git/commitdiff
python: generator: Don't print warning if nothing to warn about
authorCole Robinson <crobinso@redhat.com>
Wed, 15 Jun 2011 21:57:37 +0000 (17:57 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 20 Jun 2011 18:10:45 +0000 (14:10 -0400)
python/generator.py

index cf5ceb5f8c62890f4a99fe6a1d95a7c04ddab988..2c8fd69d49615ed6051db1fa5ba8ed6c53c63646 100755 (executable)
@@ -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: