diff options
Diffstat (limited to 'django/utils/xmlutils.py')
-rw-r--r-- | django/utils/xmlutils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/utils/xmlutils.py b/django/utils/xmlutils.py index a1eb5fb753..a09fcb0f6b 100644 --- a/django/utils/xmlutils.py +++ b/django/utils/xmlutils.py @@ -7,7 +7,8 @@ from xml.sax.saxutils import XMLGenerator class SimplerXMLGenerator(XMLGenerator): def addQuickElement(self, name, contents=None, attrs=None): "Convenience method for adding an element with no children" - if attrs is None: attrs = {} + if attrs is None: + attrs = {} self.startElement(name, attrs) if contents is not None: self.characters(contents) |