MCPcopy Create free account
hub / github.com/cdgriffith/Box / mapping

Method mapping

box/box_list.py:320–323  ·  view source on GitHub ↗
(k)

Source from the content-addressed store, hash-verified

318 shift = len(self) - length
319
320 def mapping(k):
321 if k < start:
322 return k
323 return k + shift if k >= stop else None # replaced items are new, they start without a comment
324
325 self._comment_reindex(mapping)
326

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected