[pywin32-checkins] pywin32/Pythonwin/pywin/scintilla config.py, 1.8, 1.9
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-06 00:40:58
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21863/Pythonwin/pywin/scintilla Modified Files: config.py Log Message: Use py3k compatible exception attributes when handing SyntaxError. Index: config.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/config.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** config.py 4 Dec 2008 07:02:55 -0000 1.8 --- config.py 6 Dec 2008 00:40:52 -0000 1.9 *************** *** 283,290 **** self._save_data("extension code", c) except SyntaxError, details: ! msg = details[0] ! errlineno = details[1][1] + start_lineno # Should handle syntax errors better here, and offset the lineno. ! self.report_error("Compiling extension code failed: Line %d: %s" % (errlineno, msg)) return line, lineno --- 283,290 ---- self._save_data("extension code", c) except SyntaxError, details: ! errlineno = details.lineno + start_lineno # Should handle syntax errors better here, and offset the lineno. ! self.report_error("Compiling extension code failed:\r\nFile: %s\r\nLine %d\r\n%s" \ ! % (details.filename, errlineno, details.msg)) return line, lineno |