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

Method fs_encode_errors

crates/vm/src/vm/mod.rs:2213–2219  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2211 }
2212
2213 pub fn fs_encode_errors(&self) -> &'static PyUtf8StrInterned {
2214 if cfg!(windows) {
2215 identifier_utf8!(self, surrogatepass)
2216 } else {
2217 identifier_utf8!(self, surrogateescape)
2218 }
2219 }
2220
2221 pub fn fsdecode(&self, s: impl Into<OsString>) -> PyStrRef {
2222 match s.into().into_string() {

Callers 3

fsdecodeMethod · 0.80
fsencodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected