From c86b12154bda14294dddf58bf3026c487566e3af Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 20 Feb 2009 12:50:01 +0000 Subject: Send in an empty list instead of None. --- 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 -- cgit v0.9.1