Interactive prompt SyntaxError display (213->214 regression)
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
SyntaxError exception output in the Interactive prompt of PythonWin fails by throwing additional exceptions.
This doesn't happen in build 213 (Python 3.0.1), so it's a 214 (3.1) regression.
>>> u''
...
File "<string>", line None
SyntaxError: invalid syntax (<interactive input>, line 1)
During handling of the above exception, another exception occurred:
...
File "...\pywin\framework\winout.py", line 465, in HandleOutput
pos = message.rfind('\n')
TypeError: expected an object with the buffer interface
During handling of the above exception, another exception occurred:
...
File "...\pywin\framework\winout.py", line 455, in QueueFlush
self.currentView.dowrite(''.join(items))
TypeError: sequence item 0: expected str instance, bytes found
==========
This is fixed in interact.py v1.23.