Sign in
llvm
/
llvm-lnt
/
3f6e19818b68d2fe79a30c425189a6af7dce75f0
/
.
/
lnt
/
formats
/
PlistFormat2.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
,
}