Sign in
llvm
/
llvm-lnt
/
9c9f6f8aaca07b783b4a2db2b68f7878a61bd97a
/
.
/
lnt
/
formats
/
PlistFormat.py
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
,
}