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

Method load

recipes/Python/492210_dal2py/recipe-492210.py:69–79  ·  view source on GitHub ↗
(self, name, abstract)

Source from the content-addressed store, hash-verified

67
68 # Load From File
69 def load(self, name, abstract):
70 assert type(abstract) is bool
71 self.__disk.load(name)
72 self.__blocks = (self.__disk.BLOCKS * self.__disk.SIZE) / \
73 (self.__disk.SIZE + 1)
74 self.__index = (self.__disk.BLOCKS - self.__blocks) * self.__disk.SIZE
75 self.__BIT = [ord(c) for c in self.__disk.read(0, self.__blocks)]
76 if abstract:
77 self.__soft()
78 else:
79 self.__hard()
80
81 # Fix All Errors
82 def __soft(self):

Callers 1

testFunction · 0.95

Calls 3

__softMethod · 0.95
__hardMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected