MCPcopy Create free account
hub / github.com/EasyIME/PIME / __init__

Method __init__

python/cinbase/extendtable.py:9–24  ·  view source on GitHub ↗
(self, fs)

Source from the content-addressed store, hash-verified

7 encoding = 'utf-8'
8
9 def __init__(self, fs):
10
11 self.chardefs = {}
12
13 for line in fs:
14
15 line = line.strip()
16
17 key, root = safeSplit(line)
18 key = key.lower().strip()
19 root = root.strip()
20
21 try:
22 self.chardefs[key].append(root)
23 except KeyError:
24 self.chardefs[key] = [root]
25
26 def __del__(self):
27 del self.chardefs

Callers

nothing calls this directly

Calls 2

safeSplitFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected