MythTV  master
musicbrainzngs.util Namespace Reference


def _unicode (string, encoding=None)
def bytes_to_elementtree (bytes_or_file)

Function Documentation

◆ _unicode()

def musicbrainzngs.util._unicode (   string,
  encoding = None 
Try to decode byte strings to unicode.
This can only be a guess, but this might be better than failing.
It is safe to use this on numbers or strings that are already unicode.

Definition at line 12 of file musicbrainzngs/

Referenced by musicbrainzngs.util.bytes_to_elementtree().

◆ bytes_to_elementtree()

def musicbrainzngs.util.bytes_to_elementtree (   bytes_or_file)
Given a bytestring or a file-like object that will produce them,
   parse and return an ElementTree.

Definition at line 30 of file musicbrainzngs/