MCPcopy Index your code
hub / github.com/codespell-project/codespell / is_text_file

Function is_text_file

codespell_lib/_codespell.py:786–789  ·  view source on GitHub ↗
(filename: str)

Source from the content-addressed store, hash-verified

784
785
786def is_text_file(filename: str) -> bool:
787 with open(filename, mode="rb") as f:
788 s = f.read(1024)
789 return b"\x00" not in s
790
791
792def ask_for_word_fix(

Callers 1

parse_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…