[issue23297] ‘tokenize.detect_encoding’ is confused between text and bytes: no ‘startswith’ method on a byte string
R. David Murray
report at bugs.python.org
Fri Feb 20 23:32:24 CET 2015
R. David Murray added the comment:
The error message could indeed be made clearer by turning it into a message that tokenize itself requires bytes input. Or, more likely, the additional error handling needs to be in detect_encoding.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23297>
_______________________________________
More information about the Python-bugs-list
mailing list