Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
from
sys
import
argv
2
3
def
norm_newline(s):
4
return
s.replace(
"\r\n"
,
"\n"
).replace(
"\r"
,
"\n"
)
5
6
if
norm_newline(argv[1]).strip() == norm_newline(argv[2]).strip():
7
exit(0)
Callers
1
string-match.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected