MCPcopy Create free account
hub / github.com/geekcomputers/Python / process_file

Function process_file

Cat/cat.py:59–62  ·  view source on GitHub ↗

Open one file and process its contents.

(filename, args, state)

Source from the content-addressed store, hash-verified

57
58
59def process_file(filename, args, state):
60 """Open one file and process its contents."""
61 with open(filename, "r", encoding="utf-8") as file:
62 process_stream(file, args, state)
63
64
65def process_files(files, args):

Callers 1

process_filesFunction · 0.85

Calls 1

process_streamFunction · 0.85

Tested by

no test coverage detected