STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8774>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to