MCPcopy Create free account
hub / github.com/ActiveState/code / __write

Method __write

recipes/Python/492209_dal1py/recipe-492209.py:149–154  ·  view source on GitHub ↗
(self, block, data)

Source from the content-addressed store, hash-verified

147
148 # Private Utility Function
149 def __write(self, block, data):
150 while True:
151 try:
152 return self.__disk.write(block, data)
153 except:
154 pass
155
156 # Private Utility Function
157 def __erase(self, block):

Callers 2

writeMethod · 0.95
eraseMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected