Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ __soft
Method
__soft
recipes/Python/492210_dal2py/recipe-492210.py:82–86 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
80
81
# Fix All Errors
82
def
__soft(self):
83
for
block, status in enumerate(self.__BIT):
84
if
status == 0:
85
self.__disk.erase(self.__index + block * self.__disk.SIZE, \
86
self.__disk.SIZE)
87
88
# Find Any Error
89
def
__hard(self):
Callers
1
load
Method · 0.95
Calls
2
enumerate
Function · 0.50
erase
Method · 0.45
Tested by
no test coverage detected