[issue14629] discrepency between tokenize.detect_encoding() and PyTokenizer_FindEncodingFilename()

Eric Snow 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>
<http://bugs.python.org/issue14629>
_______________________________________


More information about the Python-bugs-list mailing list