From 17e0e839906b7dc1666a5a2b6704d7feeb43ece0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 2 Jun 2010 08:34:57 +0000 Subject: [PATCH] minor unimportant update --- lib/core/xmldump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/xmldump.py b/lib/core/xmldump.py index cd7df8c0c..7197cb2a4 100644 --- a/lib/core/xmldump.py +++ b/lib/core/xmldump.py @@ -116,7 +116,7 @@ class XMLDump: The text is escaped to an fit the xml text format. ''' if data is None : - return self.__doc.createTextNode('') + return self.__doc.createTextNode(u'') else : escaped_data = saxutils.escape(self.__formatString(data), ENTITIES) return self.__doc.createTextNode(escaped_data) @@ -128,7 +128,7 @@ class XMLDump: ''' attr = self.__doc.createAttribute(attrName) if attrValue is None : - attr.nodeValue = '' + attr.nodeValue = u'' else : attr.nodeValue = self.__getUnicode(attrValue) return attr