[pywin32-checkins] pywin32/Pythonwin/pywin/framework interact.py, 1.22, 1.23
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2009-07-10 05:30:07
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25875 Modified Files: interact.py Log Message: Fix interactive SyntaxError display (bug #2818443) Index: interact.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/interact.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** interact.py 19 Apr 2009 06:46:24 -0000 1.22 --- interact.py 10 Jul 2009 05:30:00 -0000 1.23 *************** *** 259,263 **** code.InteractiveInterpreter.__init__(self, locals) def showsyntaxerror(self, filename=None): ! sys.stderr.write(tracebackHeader) # So the color syntaxer recognises it. code.InteractiveInterpreter.showsyntaxerror(self, filename) def runcode(self, code): --- 259,263 ---- code.InteractiveInterpreter.__init__(self, locals) def showsyntaxerror(self, filename=None): ! sys.stderr.write(tracebackHeader.decode('ascii')) # So the color syntaxer recognises it. code.InteractiveInterpreter.showsyntaxerror(self, filename) def runcode(self, code): |