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

Method close

recipes/Python/492210_dal2py/recipe-492210.py:47–52  ·  view source on GitHub ↗
(self, block)

Source from the content-addressed store, hash-verified

45
46 # Close A Block
47 def close(self, block):
48 assert type(block) is int and 0 <= block < self.__blocks
49 assert self.__BIT[block] != 0
50 self.__disk.erase(self.__index + block * self.__disk.SIZE, \
51 self.__disk.SIZE)
52 self.__BIT[block] = 0
53
54 # Get Status Information
55 def status(self, block):

Callers 1

testFunction · 0.95

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected