You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is then of type str instead of bytes. This is hidden by parse_message which calls bytes_to_elementtree right at the beginning, which calls _unicode, which is is basically a noop for strs. For the standard HTTPResponse.read(), which returns bytes, the codepath is the same up to _unicode, which in that case is not a noop.
The text was updated successfully, but these errors were encountered:
After looking at #208 I'm wondering if using
StringIO
in theFakeOpener
doesn't change the behaviour a bit because resp inpython-musicbrainzngs/musicbrainzngs/musicbrainz.py
Line 673 in c2e7391
str
instead ofbytes
. This is hidden byparse_message
which callsbytes_to_elementtree
right at the beginning, which calls_unicode
, which is is basically a noop forstr
s. For the standardHTTPResponse.read()
, which returnsbytes
, the codepath is the same up to_unicode
, which in that case is not a noop.The text was updated successfully, but these errors were encountered: