gh-135496: Fix f string exclamation mark error typo (GH-135495)
(cherry picked from commit
c2bb3f9843bc4763d6d41e883dbe9525f5155a4a)
Co-authored-by: GiGaGon <107241144+MeGaGiGaGon@users.noreply.github.com>
for conv in ' s', ' s ':
self.assertAllRaise(SyntaxError,
"f-string: conversion type must come right after the"
- " exclamanation mark",
+ " exclamation mark",
["f'{3!" + conv + "}'"])
self.assertAllRaise(SyntaxError,
--- /dev/null
+Fix typo in the f-string conversion type error ("exclamanation" -> "exclamation").
if (conv_token->lineno != conv->lineno || conv_token->end_col_offset != conv->col_offset) {
return RAISE_SYNTAX_ERROR_KNOWN_RANGE(
conv_token, conv,
- "%c-string: conversion type must come right after the exclamanation mark",
+ "%c-string: conversion type must come right after the exclamation mark",
TOK_GET_STRING_PREFIX(p->tok)
);
}