gobject-introspection r248 - trunk/giscanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r248 - trunk/giscanner
- Date: Mon, 28 Apr 2008 19:58:28 +0100 (BST)
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]