MCPcopy
hub / github.com/rspeer/python-ftfy / apply_plan

Function apply_plan

ftfy/fixes.py:61–70  ·  view source on GitHub ↗

Deprecated copy of `ftfy.apply_plan()`.

(text: str, plan: list[tuple[str, str]])

Source from the content-addressed store, hash-verified

59
60
61def apply_plan(text: str, plan: list[tuple[str, str]]) -> str:
62 """
63 Deprecated copy of `ftfy.apply_plan()`.
64 """
65 warnings.warn(
66 "`apply_plan()` has moved to the main module of ftfy.",
67 DeprecationWarning,
68 stacklevel=2,
69 )
70 return ftfy.apply_plan(text, plan)
71
72
73def _unescape_fixup(match: Match[str]) -> str:

Callers 1

test_json_exampleFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_json_exampleFunction · 0.72