David D. Riddle added the comment: I have made the changes you suggested. Please look at lines 87-97. I am not certain if that is correct behavior. I was surprised that a SyntaxError is thrown in addition to the UnicodeDecodeError when linecache.getlines takes a file with bad unicode. Please tell me if this or other parts of the patch need work.
---------- Added file: http://bugs.python.org/file39262/new.mywork.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24054> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com