Florent Xicluna <florent.xicl...@gmail.com> added the comment: It should raise a SyntaxError, if coding is 'utf8'. I don't agree with the last patch proposed.
If the import report a SyntaxError, 'tokenize' should do the same. $ ./python Lib/test/bad_coding2.py File "Lib/test/bad_coding2.py", line 1 SyntaxError: encoding problem: utf-8 and it complies strictly with PEP263. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14990> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com