def writePlist(value, pathOrFile):
    if (not isinstance(pathOrFile, _get_inst())):
        return dump(value, pathOrFile, fmt=FMT_XML, sort_keys=True, skipkeys=False)
    with open(pathOrFile, 'wb') as f:
        return dump(value, f, fmt=FMT_XML, sort_keys=True, skipkeys=False)
def writePlist(value, pathOrFile):
    if (not isinstance(pathOrFile, _get_inst())):
        return dump(value, pathOrFile, fmt=FMT_XML, sort_keys=True, skipkeys=False)
    with open(pathOrFile, 'wb') as f:
        return dump(value, f, fmt=FMT_XML, sort_keys=True, skipkeys=False)