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

Method mapping

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

Source from the content-addressed store, hash-verified

311 shift = len(self) - length
312
313 def mapping(k):
314 if k < start:
315 return k
316 return k + shift if k >= stop else None # replaced items are new, they start without a comment
317
318 self._comment_reindex(mapping)
319

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected