Skip to content

Commit 0895ab7

Browse files
committed
Update core.py
1 parent 7ac88ef commit 0895ab7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pythainlp/corpus/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,13 @@ def get_corpus_default_db(name: str, version: str = None) -> Union[str, None]:
135135
return path_pythainlp_corpus(
136136
corpus_db[name]["versions"][version]["filename"]
137137
)
138-
elif version is None: # load latest version
138+
elif version is None: # load latest version
139139
version = corpus_db[name]["latest_version"]
140140
return path_pythainlp_corpus(
141141
corpus_db[name]["versions"][version]["filename"]
142142
)
143143

144144

145-
146145
def get_corpus_path(name: str, version: str = None) -> Union[str, None]:
147146
"""
148147
Get corpus path.

0 commit comments

Comments
 (0)