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

Method close_block

recipes/Python/492211_dal3py/recipe-492211.py:415–418  ·  view source on GitHub ↗
(self, block)

Source from the content-addressed store, hash-verified

413
414 # Close A Block
415 def close_block(self, block):
416 assert type(block) is int and 1 <= block <= self.__blocks
417 assert self.__disk.status(block) == self.STATUS.b1
418 self.__disk.close(block)
419
420 # Get Status Information
421 def status(self, block):

Callers 2

remove_fileMethod · 0.80
write_fileMethod · 0.80

Calls 2

statusMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected