MCPcopy Create free account
hub / github.com/bugy/script-server / _replace_line_separators

Function _replace_line_separators

src/tests/execution_logging_test.py:133–137  ·  view source on GitHub ↗
(files, original, new)

Source from the content-addressed store, hash-verified

131
132
133def _replace_line_separators(files, original, new):
134 for file in files:
135 content = file_utils.read_file(file, byte_content=True)
136 replaced_content = content.decode('utf-8').replace(original, new).encode('utf-8')
137 file_utils.write_file(file, replaced_content, byte_content=True)
138
139
140class TestLoggingService(unittest.TestCase):

Calls

no outgoing calls

Tested by

no test coverage detected