Chad Whitacre added the comment:
> in the 3.x version, only character strings (unicode) are accepted
> The code was changed to do this in r83361 #3788.
That seems like a bug to me. It looks like the intention was to avoid the
`type("")` check for stylistic reasons, so `isinstance(rawdata,
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report and patch. This is not as easy as it sounds: The doc
ambiguously uses “string”; the code clearly wants only byte strings (str); in
the 3.x version, only character strings (unicode) are accepted; “raw” would
suggest to me
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11315
___
___
Python-bugs-list mailing