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

Method unparse_fstring_str

crates/codegen/src/unparse.rs:620–623  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

618 }
619
620 fn unparse_fstring_str(&mut self, s: &str) -> fmt::Result {
621 let s = s.replace('{', "{{").replace('}', "}}");
622 self.p(&s)
623 }
624
625 fn unparse_fstring(&mut self, value: &ast::FStringValue) -> fmt::Result {
626 self.p("f")?;

Callers 1

unparse_fstring_elemMethod · 0.80

Calls 2

replaceMethod · 0.45
pMethod · 0.45

Tested by

no test coverage detected