FString formatting: remove fstring handling in normalize_string (#10119)

This commit is contained in:
Micha Reiser 2024-02-25 18:28:46 +01:00 committed by GitHub
parent 51ce88bb23
commit 1711bca4a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 3 deletions

View file

@ -62,6 +62,7 @@ impl Format<PyFormatContext<'_>> for FormatFStringLiteralElement<'_> {
self.context.quotes(),
self.context.prefix(),
is_hex_codes_in_unicode_sequences_enabled(f.context()),
true,
);
match &normalized {
Cow::Borrowed(_) => source_text_slice(self.element.range()).fmt(f),