MCPcopy Index your code
hub / github.com/python/cpython / QueryValue

Method QueryValue

Lib/test/test_getpath.py:1102–1114  ·  view source on GitHub ↗
(self, hkey, subkey)

Source from the content-addressed store, hash-verified

1100 raise OSError("end of enumeration")
1101
1102 def QueryValue(self, hkey, subkey):
1103 if verbose:
1104 print(f"QueryValue({hkey}, {subkey})")
1105 hkey = hkey.casefold()
1106 if hkey not in self.open:
1107 raise RuntimeError("key is not open")
1108 if subkey:
1109 subkey = subkey.casefold()
1110 hkey = f'{hkey}\\{subkey}'
1111 try:
1112 return self.keys[hkey]
1113 except KeyError:
1114 raise OSError()
1115
1116
1117class MockPosixNamespace(dict):

Callers 3

_get_dochomeFunction · 0.80
_search_registryMethod · 0.80
getpath.pyFile · 0.80

Calls 1

casefoldMethod · 0.80

Tested by

no test coverage detected