main.py 文件源码

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

项目:GSM-scanner 作者: yosriayed 项目源码 文件源码
def gethookproxy(self, fspath):
        try:
            return self._fs2hookproxy[fspath]
        except KeyError:
            # check if we have the common case of running
            # hooks with all conftest.py filesall conftest.py
            pm = self.config.pluginmanager
            my_conftestmodules = pm._getconftestmodules(fspath)
            remove_mods = pm._conftest_plugins.difference(my_conftestmodules)
            if remove_mods:
                # one or more conftests are not in use at this fspath
                proxy = FSHookProxy(fspath, pm, remove_mods)
            else:
                # all plugis are active for this fspath
                proxy = self.config.hook

            self._fs2hookproxy[fspath] = proxy
            return proxy
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号