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

Method _verify_open

Lib/dbm/dumb.py:140–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 sync = _commit
139
140 def _verify_open(self):
141 if self._index is None:
142 raise error('DBM object has already been closed')
143
144 def __getitem__(self, key):
145 if isinstance(key, str):

Callers 5

__getitem__Method · 0.95
__setitem__Method · 0.95
__delitem__Method · 0.95
itemsMethod · 0.95
reorganizeMethod · 0.95

Calls 1

errorClass · 0.70

Tested by

no test coverage detected