diff options
author | Johan Dahlin <johan@src.gnome.org> | 2008-04-28 18:58:28 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-04-28 18:58:28 +0000 |
commit | a0e84c935fcf7aa4f3d0f641f93e001007888dc4 (patch) | |
tree | ab2526d780197301551345a7cd741e0c875ce3c4 /giscanner | |
parent | bdf65ed8dab6ace3fee344f7cc6248559e039b1d (diff) | |
download | gobject-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.py | 2 |
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 = '/>' |