From: Cole Robinson Date: Wed, 15 Jun 2011 21:57:37 +0000 (-0400) Subject: python: generator: Don't print warning if nothing to warn about X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=eb3151b41156336acd9ffe812e6cba7a59d365df;p=libvirt.git python: generator: Don't print warning if nothing to warn about --- diff --git a/python/generator.py b/python/generator.py index cf5ceb5f8c..2c8fd69d49 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: