(self, hkey, subkey)
| 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 | |
| 1117 | class MockPosixNamespace(dict): |
no test coverage detected