New submission from STINNER Victor <[EMAIL PROTECTED]>: tokenize.detect_encoding() raises a LookupError() if the charset is unknown whereas Python raises a SyntaxError. So this patch mimics Python behaviour for tokenize module.
Extra: reuse BOM_UTF8 from the codecs module. ---------- files: tokenize_detect_encoding.patch keywords: patch, patch messages: 74205 nosy: haypo severity: normal status: open title: tokenize.detect_encoding(): raise SyntaxError on codecs.lookup() error versions: Python 3.0 Added file: http://bugs.python.org/file11683/tokenize_detect_encoding.patch _______________________________________ 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