gobject-introspection r248 - trunk/giscanner



Author: johan
Date: Mon Apr 28 18:58:28 2008
New Revision: 248
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=248&view=rev

Log:
Check explicitly for None, so we can write False

Modified:
   trunk/giscanner/xmlwriter.py

Modified: trunk/giscanner/xmlwriter.py
==============================================================================
--- trunk/giscanner/xmlwriter.py	(original)
+++ trunk/giscanner/xmlwriter.py	Mon Apr 28 18:58:28 2008
@@ -78,7 +78,7 @@
 
     def write_tag(self, tag_name, attributes, data=None):
         prefix = '<%s' % (tag_name,)
-        if data:
+        if data is not None:
             suffix = '>%s</%s>' % (data, tag_name)
         else:
             suffix = '/>'



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