MCPcopy Index your code
hub / github.com/RustPython/RustPython / init_db

Method init_db

Lib/test/test_dbm.py:57–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 }
56
57 def init_db(self):
58 f = dbm.open(_fname, 'n')
59 for k in self._dict:
60 f[k.encode("ascii")] = self._dict[k]
61 f.close()
62
63 def keys_helper(self, f):
64 keys = sorted(k.decode("ascii") for k in f.keys())

Callers 4

test_anydbm_readMethod · 0.95
test_anydbm_keysMethod · 0.95
test_anydbm_accessMethod · 0.95

Calls 3

openMethod · 0.45
encodeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected