(fp, *, fmt=None, dict_type=dict)
return p.parse(fp)
Read a .plist file. 'fp' should be a readable and binary file object.
    Return the unpacked root object (which usually is a dictionary).
Read a .plist file. 'fp' should be a readable and binary file object.
    Return the unpacked root object (which usually is a dictionary).
Read a . plist file . fp should be a readable and binary file object . Return the unpacked root object ( which usually is a dictionary ) .
def load(fp, *, fmt=None, dict_type=dict):
    """Read a .plist file. 'fp' should be a readable and binary file object.
    Return the unpacked root object (which usually is a dictionary).
    """
    if fmt is None:
        header = fp.read(32)
        fp.seek(0)
        for info in _FORMATS.values():
            if info['detect'](header):
                P = info['parser']
                break

        else:
            raise InvalidFileException()

    else:
        P = _FORMATS[fmt]['parser']

    p = P(dict_type=dict_type)
    return p.parse(fp)
def load ( fp , * , fmt = None , dict_type = dict ) : if fmt is None : header = fp . read ( 32 ) fp . seek ( 0 ) for info in _FORMATS . values ( ) : if info [ 'detect' ] ( header ) : P = info [ 'parser' ] break else : raise InvalidFileException ( ) else : P = _FORMATS [ fmt ] [ 'parser' ] p = P ( dict_type = dict_type ) return p . parse ( fp )