dabo Commit
Revision 4564
Date: 2008-10-13 05:29:40 -0700 (Mon, 13 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4564
Changed:
U trunk/dabo/lib/DesignerXmlConverter.py
Log:
Added work-around for the bug in which a final line that is a comment without a
trailing newline will throw an error in compile().
Diff:
Modified: trunk/dabo/lib/DesignerXmlConverter.py
===================================================================
--- trunk/dabo/lib/DesignerXmlConverter.py 2008-10-12 13:11:02 UTC (rev
4563)
+++ trunk/dabo/lib/DesignerXmlConverter.py 2008-10-13 12:29:40 UTC (rev
4564)
@@ -58,6 +58,8 @@
dct = self.importSrc(src)
# Parse the XML and create the class definition text
self.createClassText(dct)
+ # Work-around for bug in which a trailing comment line throws
an error
+ self.classText += "\n"
open(self._classFileName, "w").write(self.classText)
## For debugging. This creates a copy of the generated code
_______________________________________________
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/[EMAIL PROTECTED]