MCPcopy Index your code
hub / github.com/RustPython/RustPython / rust_str

Function rust_str

crates/sre_engine/generate_tests.py:50–51  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

48
49
50def rust_str(s):
51 return '"' + s.translate(EscapeRustStr) + '"'
52
53
54# matches `// pattern {varname} = re.compile(...)`

Callers 1

replace_compiledFunction · 0.85

Calls 1

translateMethod · 0.45

Tested by

no test coverage detected