Skip to content

Commit aaced0b

Browse files
authored
Rename 'threes' to 'data'
1 parent 5c9914b commit aaced0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythainlp/util/trie.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ def remove(self, word: str) -> None:
5353
self.words.remove(word)
5454
# then remove from nodes
5555
parent = self.root
56-
threes = [] # track path to leaf
56+
data = [] # track path to leaf
5757
for ch in word:
5858
child = parent.children[ch]
59-
threes.append((parent, child, ch))
59+
data.append((parent, child, ch))
6060
parent = child
6161
# remove the last one
6262
child.end = False
6363
# prune up the tree
64-
for parent, child, ch in reversed(threes):
64+
for parent, child, ch in reversed(data):
6565
if child.end or child.children:
6666
break
6767
del parent.children[ch] # remove from parent dict

0 commit comments

Comments
 (0)