#1172: Syntax Error when Form-code.py ends with a comment
---------------------+------------------------------------------------------
Reporter: resplin | Owner: somebody
Type: defect | Status: new
Priority: minor | Milestone: 0.9
Component: ui | Version: 0.8.3
Keywords: |
---------------------+------------------------------------------------------
At runtime I get errors complaining about my vim modeline. It turns out
that the interpretor is mad about any comment at the end of the file, even
when followed by whitespace lines. If the comment is followed by a pass,
the application runs fine.
It looks like something in Dabo goes wrong when the file is merged with
the cdxml.
I am using Dabo release 0.8.4, on Python 2.5.2, using the Ubuntu Hardy
(8.04) python-wxgtk2.8 package (2.8.7.1-0ubuntu3).
Traceback (most recent call last):
File "./start.py", line 19, in <module>
app.start()
File "/home/richard/Desktop/dabo/dabo/dApp.py", line 312, in start
File "/home/richard/Desktop/dabo/dabo/dApp.py", line 277, in setup
File "/home/richard/Desktop/dabo/dabo/dApp.py", line 304, in initUIApp
File "/usr/local/lib/python2.5/site-packages/dabo/ui/uiwx/uiApp.py",
line 277, in setup
frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
File "/usr/local/lib/python2.5/site-packages/dabo/ui/uiwx/__init__.py",
line 1073, in createForm
cls = conv.classFromXml(srcFile)
File "/usr/local/lib/python2.5/site-
packages/dabo/lib/DesignerXmlConverter.py", line 72, in classFromXml
compClass = compile(self.classText, self._classFileName, "exec")
File "/tmp/tmpkNyEz1.py", line 135
# here
^
SyntaxError: invalid syntax
--
Ticket URL: <http://trac.dabodev.com/ticket/1172>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
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]