MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / read_file

Method read_file

Dictionary/dictionary_.py:16–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 self.data = self.read_file()
15
16 def read_file(self):
17 logging.debug(f"reading the file: {self.file_name}")
18 data = json.load(open(self.file_name))
19 logging.debug(f'The type of data: {type(data)}')
20 return data
21
22 def _translate(self):
23 word = str.lower(self.word)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected