projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf65ed
)
Check explicitly for None, so we can write False
author
Johan Dahlin
<johan@src.gnome.org>
Mon, 28 Apr 2008 18:58:28 +0000
(18:58 +0000)
committer
Johan Dahlin
<johan@src.gnome.org>
Mon, 28 Apr 2008 18:58:28 +0000
(18:58 +0000)
svn path=/trunk/; revision=248
giscanner/xmlwriter.py
patch
|
blob
|
history
diff --git
a/giscanner/xmlwriter.py
b/giscanner/xmlwriter.py
index
2528527
..
2063106
100644
(file)
--- 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 = '/>'