Skip to content

Commit 0e960c9

Browse files
committed
Update core.py
1 parent 39a6136 commit 0e960c9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pythainlp/corpus/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,6 @@ def remove(name: str) -> bool:
585585
# FileNotFoundError: [Errno 2] No such file or directory:
586586
# '/usr/local/lib/python3.6/dist-packages/pythainlp/corpus/ttc'
587587
"""
588-
if _CHECK_MODE == "1":
589-
print("PyThaiNLP is read-only mode. It can't remove corpus.")
590-
return False
591588
with open(corpus_db_path(), "r", encoding="utf-8-sig") as f:
592589
db = json.load(f)
593590
data = [

0 commit comments

Comments
 (0)