def __init__(self, data):
        """Parse the given data string or file-like as a metadata block.
        The metadata header should not be included."""
        if data is not None:
            if not isinstance(data, StrictFileObject):
                if isinstance(data, bytes):
                    data = cBytesIO(data)
                elif not hasattr(data, 'read'):
                    raise TypeError(
                        "StreamInfo requires string data or a file-like")
                data = StrictFileObject(data)
            self.load(data)
def __init__ ( self , data ) : if data is not None : if not isinstance ( data , StrictFileObject ) : if isinstance ( data , bytes ) : data = cBytesIO ( data ) elif not hasattr ( data , 'read' ) : raise TypeError ( "StreamInfo requires string data or a file-like" ) data = StrictFileObject ( data ) self . load ( data )
Parse the given data string or file-like as a metadata block.
        The metadata header should not be included.