mineo/python-musicbrainz-ngs — pull request #1 by JonnyJD (2012-03-28 01:19:54+00:00)
Title: decode xml data to unicode for Python 3 (only)

Python 2 ElementTree opened the MB response through the StringIO file adapter,
read the encoding parameter in the xml file and gave unicode output
or ascii if that was enough.
Python 2 ElementTree does not seem to support unicode input.

Python 2 StringIO only supports unicode input.

So we decode from bytes to unicode just for Python 3.

Like I said in the main pull request: using my _unicode is not what we want, because we already know that the xml will be bytes in UTF-8. Always. We just use ```compat.unicode(.., "utf8")```.