def check(self):
plist_file_globs = {
"**/*.tmLanguage",
"**/*.tmPreferences",
"**/*.tmSnippet",
"**/*.tmTheme",
}
for file_path in self.globs(*plist_file_globs):
with self.file_context(file_path):
with file_path.open('rb') as f:
try:
plistlib.load(f)
except (ValueError, ExpatError) as e:
self.fail("Invalid Plist", exception=e)
check_resource_file_validity.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录