steamfiles/appinfo.py
def loads(data, wrapper=dict):
    """
    Loads Appinfo content into a Python object.
    :param data: A byte-like object with the contents of an Appinfo file.
    :param wrapper: A wrapping object for key-value pairs.
    :return: An Ordered Dictionary with Appinfo data.
    """
    if not isinstance(data, (bytes, bytearray)):
        raise TypeError('can only load a bytes-like object as an Appinfo but got ' + type(data).__name__)

    return AppinfoDecoder(data, wrapper=wrapper).decode()
def loads(data, wrapper=dict):
    """
    Loads Appinfo content into a Python object.
    :param data: A byte-like object with the contents of an Appinfo file.
    :param wrapper: A wrapping object for key-value pairs.
    :return: An Ordered Dictionary with Appinfo data.
    """
    if not isinstance(data, (bytes, bytearray)):
        raise TypeError('can only load a bytes-like object as an Appinfo but got ' + type(data).__name__)

    return AppinfoDecoder(data, wrapper=wrapper).decode()
def loads ( data , wrapper = dict ) : if not isinstance ( data , ( bytes , bytearray ) ) : raise TypeError ( 'can only load a bytes-like object as an Appinfo but got ' + type ( data ) . __name__ ) return AppinfoDecoder ( data , wrapper = wrapper ) . decode ( )
Loads Appinfo content into a Python object.
    :param data: A byte-like object with the contents of an Appinfo file.
    :param wrapper: A wrapping object for key-value pairs.
    :return: An Ordered Dictionary with Appinfo data.
Loads Appinfo content into a Python object . : param data : A byte - like object with the contents of an Appinfo file . : param wrapper : A wrapping object for key - value pairs . : return : An Ordered Dictionary with Appinfo data .