STINNER Victor <victor.stin...@haypocalc.com> added the comment:

> Rather than fiddling with the warnings filters, wouldn't it be easier
> to just catch BytesWarning and return False in that case?

It's another possible solution, but it would display a warning using python -b.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11887>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to