diff options
author | Johan Dahlin <jdahlin@litl.com> | 2009-02-20 09:50:01 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2009-02-20 09:50:01 -0300 |
commit | c86b12154bda14294dddf58bf3026c487566e3af (patch) | |
tree | 60429b5bf40310e33411a6b3f60a87963de78559 /giscanner/xmlwriter.py | |
parent | 48b8fe509e0aef8ce4db323053507ba1daeb2552 (diff) | |
download | gobject-introspection-c86b12154bda14294dddf58bf3026c487566e3af.tar.gz |
Send in an empty list instead of None.
Diffstat (limited to 'giscanner/xmlwriter.py')
-rw-r--r-- | giscanner/xmlwriter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/xmlwriter.py b/giscanner/xmlwriter.py index 3c141621..9f222e9e 100644 --- a/giscanner/xmlwriter.py +++ b/giscanner/xmlwriter.py @@ -120,6 +120,8 @@ class XMLWriter(object): self.write_line(prefix + attrs + suffix) def push_tag(self, tag_name, attributes=None): + if attributes is None: + attributes = [] self._open_tag(tag_name, attributes) self._tag_stack.append(tag_name) self._indent += self._indent_unit |