MCPcopy Create free account
hub / github.com/THUDM/AgentBench / norm_newline

Function norm_newline

data/os_interaction/scripts/2/check/string-match.py:3–4  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1from sys import argv
2
3def norm_newline(s):
4 return s.replace("\r\n", "\n").replace("\r", "\n")
5
6if norm_newline(argv[1]).strip() == norm_newline(argv[2]).strip():
7 exit(0)

Callers 1

string-match.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected