Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17e0e83

Browse files
committed
minor unimportant update
1 parent 32a0ba9 commit 17e0e83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/xmldump.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __createTextNode(self,data):
116116
The text is escaped to an fit the xml text format.
117117
'''
118118
if data is None :
119-
return self.__doc.createTextNode('')
119+
return self.__doc.createTextNode(u'')
120120
else :
121121
escaped_data = saxutils.escape(self.__formatString(data), ENTITIES)
122122
return self.__doc.createTextNode(escaped_data)
@@ -128,7 +128,7 @@ def __createAttribute(self,attrName,attrValue):
128128
'''
129129
attr = self.__doc.createAttribute(attrName)
130130
if attrValue is None :
131-
attr.nodeValue = ''
131+
attr.nodeValue = u''
132132
else :
133133
attr.nodeValue = self.__getUnicode(attrValue)
134134
return attr

0 commit comments

Comments
 (0)