MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / process_ignores

Function process_ignores

tools/synchro.py:409–414  ·  view source on GitHub ↗
(lines: list[str])

Source from the content-addressed store, hash-verified

407
408
409def process_ignores(lines: list[str]) -> list[str]:
410 for i in range(len(lines)):
411 for k, v in replacements.items():
412 if "unasync: off" in lines[i] and v in lines[i]:
413 lines[i] = lines[i].replace(v, k)
414 return lines
415
416
417def unasync_directory(files: list[str], src: str, dest: str, replacements: dict[str, str]) -> None:

Callers 1

process_filesFunction · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected