Skip to content

Commit b2a761b

Browse files
committed
refactor(pipeline): remove redundant comments from file processing guard
1 parent bcbe409 commit b2a761b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

krakenparser/pipeline.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ def _is_processable(filepath: Path) -> bool:
5858
except Exception:
5959
return False
6060

61-
# 3. СТРОГАЯ проверка на UTF-8 (вот здесь косяк)
6261
try:
63-
# Добавляем errors="strict", чтобы не глотать BOM и левые кодировки
6462
with open(filepath, "r", encoding="utf-8", errors="strict") as f:
65-
# Читаем небольшой кусок файла для проверки
6663
f.read(1024)
6764
return True
6865
except UnicodeDecodeError:

0 commit comments

Comments
 (0)