Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@litl.com>2009-02-20 12:50:01 (GMT)
committer Johan Dahlin <johan@gnome.org>2009-02-20 12:50:01 (GMT)
commitc86b12154bda14294dddf58bf3026c487566e3af (patch)
tree60429b5bf40310e33411a6b3f60a87963de78559
parent48b8fe509e0aef8ce4db323053507ba1daeb2552 (diff)
Send in an empty list instead of None.
-rw-r--r--giscanner/xmlwriter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/xmlwriter.py b/giscanner/xmlwriter.py
index 3c14162..9f222e9 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