summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2008-04-28 18:58:28 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-04-28 18:58:28 +0000
commita0e84c935fcf7aa4f3d0f641f93e001007888dc4 (patch)
treeab2526d780197301551345a7cd741e0c875ce3c4 /giscanner
parentbdf65ed8dab6ace3fee344f7cc6248559e039b1d (diff)
downloadgobject-introspection-a0e84c935fcf7aa4f3d0f641f93e001007888dc4.tar.gz
Check explicitly for None, so we can write False
svn path=/trunk/; revision=248
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/xmlwriter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/xmlwriter.py b/giscanner/xmlwriter.py
index 25285274..20631061 100644
--- a/giscanner/xmlwriter.py
+++ b/giscanner/xmlwriter.py
@@ -78,7 +78,7 @@ class XMLWriter(object):
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 = '/>'