@@ -5020,7 +5020,7 @@ fstring_find_expr(const char **str, const char *end, int raw, int recurse_lvl,
5020
5020
int conversion = -1 ; /* The conversion char. Use default if not
5021
5021
specified, or !r if using = and no format
5022
5022
spec. */
5023
- int equal_conversion = 0 ; /* Are we using the = feature? */
5023
+ int equal_flag = 0 ; /* Are we using the = feature? */
5024
5024
PyObject * expr_text = NULL ; /* The text of the expression, used for =. */
5025
5025
const char * expr_text_end ;
5026
5026
@@ -5198,10 +5198,11 @@ fstring_find_expr(const char **str, const char *end, int raw, int recurse_lvl,
5198
5198
expr_text. */
5199
5199
if (* * str == '=' ) {
5200
5200
* str += 1 ;
5201
- equal_conversion = 1 ;
5201
+ equal_flag = 1 ;
5202
5202
5203
5203
/* Skip over ASCII whitespace. No need to test for end of string
5204
- here, since we know there's at least a } somewhere ahead. */
5204
+ here, since we know there's at least a trailing quote somewhere
5205
+ ahead. */
5205
5206
while (Py_ISSPACE (* * str )) {
5206
5207
* str += 1 ;
5207
5208
}
@@ -5226,7 +5227,7 @@ fstring_find_expr(const char **str, const char *end, int raw, int recurse_lvl,
5226
5227
}
5227
5228
5228
5229
}
5229
- if (equal_conversion ) {
5230
+ if (equal_flag ) {
5230
5231
Py_ssize_t len = expr_text_end - expr_start ;
5231
5232
expr_text = PyUnicode_FromStringAndSize (expr_start , len );
5232
5233
if (!expr_text )
@@ -5257,7 +5258,7 @@ fstring_find_expr(const char **str, const char *end, int raw, int recurse_lvl,
5257
5258
5258
5259
/* If we're in = mode, and have no format spec and no explict conversion,
5259
5260
set the conversion to 'r'. */
5260
- if (equal_conversion && format_spec == NULL && conversion == -1 ) {
5261
+ if (equal_flag && format_spec == NULL && conversion == -1 ) {
5261
5262
conversion = 'r' ;
5262
5263
}
5263
5264
0 commit comments