dabo Commit
Revision 3710
Date: 2007-11-16 11:14:03 -0800 (Fri, 16 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3710
Changed:
U trunk/dabo/lib/xmltodict.py
Log:
Removed the calls to encode data from an xml file. Now that the data is saved
in proper encoding, the parser should handle the decoding from the xml header.
Diff:
Modified: trunk/dabo/lib/xmltodict.py
===================================================================
--- trunk/dabo/lib/xmltodict.py 2007-11-16 19:14:02 UTC (rev 3709)
+++ trunk/dabo/lib/xmltodict.py 2007-11-16 19:14:03 UTC (rev 3710)
@@ -68,17 +68,17 @@
else:
if self._inCode:
- self._mthdName = name.encode()
+ self._mthdName = name #.encode()
elif self._inProp:
if self._propName:
# In the middle of a prop definition
- self._currPropAtt = name.encode()
+ self._currPropAtt = name
#.encode()
else:
- self._propName = name.encode()
+ self._propName = name #.encode()
self._currPropDict = {}
self._currPropAtt = ""
else:
- element = {"name": name.encode()}
+ element = {"name": name} #.encode()}
if len(attributes) > 0:
for att in self.attsToSkip:
if attributes.has_key(att):
@@ -130,7 +130,7 @@
"""SAX character data event handler"""
if self._inCode or data.strip():
data = data.replace("<", "<")
- data = data.encode()
+ data = data #.encode()
if self._inCode:
if self._mthdCode:
self._mthdCode += data
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]