Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: This patch seems good to me, it fixes the following test:
Index: Lib/test/test_tokenize.py =================================================================== --- Lib/test/test_tokenize.py (revision 66701) +++ Lib/test/test_tokenize.py (working copy) @@ -795,6 +795,8 @@ self.assertEquals(encoding, 'utf-8') self.assertEquals(consumed_lines, []) + readline = self.get_readline((b'# coding: bad\n',)) + self.assertRaises(SyntaxError, detect_encoding, readline) class TestTokenize(TestCase): ---------- keywords: +needs review nosy: +amaury.forgeotdarc _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4021> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com