[issue8793] IDLE crashes on opening invalid file

Roger Serwy report at bugs.python.org
Wed Nov 16 02:23:40 CET 2011


Roger Serwy <roger.serwy at gmail.com> added the comment:

With IDLE 3.2 on Ubuntu 11.04, this is not a problem. An error box pops up:

SyntaxError
(unicode error) 'unicodeescape' codec can't decode bytes in position 0-3: truncated \xXX escape

With IDLE 2.7.1 on Ubuntu 11.04, the console gives the error described by Amaury.

A quick fix would be to add "ValueError" to the except clause in "checksyntax" in ScriptBinding for the 2.7 branch.

----------
nosy: +serwy
versions: +Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8793>
_______________________________________


More information about the Python-bugs-list mailing list