[issue8774] tabnanny improperly handles non-ascii source files

STINNER Victor report at bugs.python.org
Fri May 21 01:02:33 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> You should handle the case of encoding being None.

detect_encoding() never returns None for the encoding. If there is no cookie, utf8 is returned by default.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8774>
_______________________________________


More information about the Python-bugs-list mailing list