Registry.py 文件源码

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

项目:maestro 作者: InWorldz 项目源码 文件源码
def __getitem__(self, key):
        bReturnType=False
        if (type(key) is tuple) and (len(key)==1):
            key = key[0]
            bReturnType=True
            # is it data?
        try:
            return self.massageIncomingRegistryValue(_winreg.QueryValueEx(self.keyhandle, key),bReturnType)
        except:
            if key == '':
                # Special case: this dictionary key means "default value"
                raise KeyError, key
            pass
            # it's probably a registry key then
        try:
            return RegistryDict(self.keyhandle, key, _winreg.KEY_ALL_ACCESS)
        except:
            pass
            # must not be there
        raise KeyError, key
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号