blob: 3295b9be72a387e575187b036ccca13dce256b9d [file] [log] [blame]
import plistlib
def _matches_format(path_or_file):
try:
plistlib.readPlist(path_or_file)
return True
except Exception:
return False
format = {
'name': 'plist',
'predicate': _matches_format,
'read': plistlib.readPlist,
'write': plistlib.writePlist,
}