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

Method CloseKey

Lib/test/test_getpath.py:1078–1086  ·  view source on GitHub ↗
(self, hkey)

Source from the content-addressed store, hash-verified

1076 raise FileNotFoundError()
1077
1078 def CloseKey(self, hkey):
1079 if verbose:
1080 print(f"CloseKey({hkey})")
1081 hkey = hkey.casefold()
1082 if hkey not in self.open:
1083 raise RuntimeError("key is not open")
1084 self.open[hkey] -= 1
1085 if not self.open[hkey]:
1086 del self.open[hkey]
1087
1088 def EnumKey(self, hkey, i):
1089 if verbose:

Callers 3

is_installedFunction · 0.80
collect_windowsFunction · 0.80
getpath.pyFile · 0.80

Calls 1

casefoldMethod · 0.80

Tested by

no test coverage detected