MCPcopy Create free account
hub / github.com/InternScience/SciReason / escape_ansi

Function escape_ansi

opencompass/lagent/actions/ipython_interpreter.py:273–275  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

271
272
273def escape_ansi(line):
274 ansi_escape = re.compile(r'(?:\x1B[@-_]|[\x80-\x9F])[0-?]*[ -/]*[@-~]')
275 return ansi_escape.sub('', line)
276
277
278def publish_image_to_local(image_base64: str):

Callers 1

_inner_callMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected