check_resource_file_validity.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:st_package_reviewer 作者: packagecontrol 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号