dabo Commit
Revision 1773
Date: 2006-01-12 10:10:08 -0800 (Thu, 12 Jan 2006)
Author: paul
Changed:
U trunk/dabo/lib/xmltodict.py
Log:
This seems to fix the compile errors for cdxml files on Windows.
Diff:
Modified: trunk/dabo/lib/xmltodict.py
===================================================================
--- trunk/dabo/lib/xmltodict.py 2006-01-12 17:13:21 UTC (rev 1772)
+++ trunk/dabo/lib/xmltodict.py 2006-01-12 18:10:08 UTC (rev 1773)
@@ -7,6 +7,7 @@
import string
from xml.parsers import expat
+code_linesep = "\n"
class Xml2Obj:
"""XML to Object"""
@@ -74,7 +75,7 @@
data = data.encode()
if self._inCode:
if self._mthdCode:
- self._mthdCode += "%s%s" % (os.linesep,
data)
+ self._mthdCode += "%s%s" %
(code_linesep, data)
else:
self._mthdCode = data
else:
@@ -155,7 +156,7 @@
if dct.has_key("code"):
if len(dct["code"].keys()):
- ret += "%s%s<code>\n" % (os.linesep, "\t" *
(level+1))
+ ret += "%s%s<code>%s" % (os.linesep, "\t" *
(level+1), os.linesep)
methodTab = "\t" * (level+2)
for mthd, cd in dct["code"].items():
# Make sure that the code ends with a
linefeed
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev