rustpython-literal

This commit is contained in:
Jeong YunWon 2023-05-05 20:41:18 +09:00
parent bd64603950
commit 80109b1fe0
9 changed files with 773 additions and 7 deletions

View file

@ -511,7 +511,7 @@ impl<'a> Unparser<'a> {
} else {
self.p("f")?;
let body = to_string_fmt(|f| Unparser::new(f).unparse_fstring_body(values, is_spec));
rustpython_common::escape::UnicodeEscape::new_repr(&body)
rustpython_literal::escape::UnicodeEscape::new_repr(&body)
.str_repr()
.write(&mut self.f)
}