[issue14629] discrepency between tokenize.detect_encoding() and PyTokenizer_FindEncodingFilename()
report at bugs.python.org
Fri Apr 20 17:24:34 CEST 2012
Eric Snow <ericsnowcurrently at gmail.com> added the comment:
Apparently the message string contained by the SyntaxError is different between the two. I noticed due to the hard-coded check in test_find_module_encoding (in Lib/test/test_imp.py). I've brought up the specific issue of that hard-coded message check in issue14633. However, in case it otherwise matters that the message string be the same between the two, I've brought it up here.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list