@@ -1231,7 +1231,7 @@ _PyPegen_nonparen_genexp_in_call(Parser *p, expr_ty args, asdl_comprehension_seq
1231
1231
// Fstring stuff
1232
1232
1233
1233
static expr_ty
1234
- _PyPegen_decode_fstring_part (Parser * p , int is_raw , expr_ty constant ) {
1234
+ _PyPegen_decode_fstring_part (Parser * p , int is_raw , expr_ty constant , Token * token ) {
1235
1235
assert (PyUnicode_CheckExact (constant -> v .Constant .value ));
1236
1236
1237
1237
const char * bstr = PyUnicode_AsUTF8 (constant -> v .Constant .value );
@@ -1247,7 +1247,7 @@ _PyPegen_decode_fstring_part(Parser* p, int is_raw, expr_ty constant) {
1247
1247
}
1248
1248
1249
1249
is_raw = is_raw || strchr (bstr , '\\' ) == NULL ;
1250
- PyObject * str = _PyPegen_decode_string (p , is_raw , bstr , len , NULL );
1250
+ PyObject * str = _PyPegen_decode_string (p , is_raw , bstr , len , token );
1251
1251
if (str == NULL ) {
1252
1252
_Pypegen_raise_decode_error (p );
1253
1253
return NULL ;
@@ -1321,7 +1321,7 @@ _PyPegen_joined_str(Parser *p, Token* a, asdl_expr_seq* raw_expressions, Token*b
1321
1321
for (Py_ssize_t i = 0 ; i < n_items ; i ++ ) {
1322
1322
expr_ty item = asdl_seq_GET (expr , i );
1323
1323
if (item -> kind == Constant_kind ) {
1324
- item = _PyPegen_decode_fstring_part (p , is_raw , item );
1324
+ item = _PyPegen_decode_fstring_part (p , is_raw , item , b );
1325
1325
if (item == NULL ) {
1326
1326
return NULL ;
1327
1327
}
0 commit comments