diff --git a/Lib/tokenize.py b/Lib/tokenize.py index f8ac40116c9bd7..0ab1893d42f72f 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -215,8 +215,9 @@ def untokenize(self, iterable): elif tok_type == FSTRING_MIDDLE: if '{' in token or '}' in token: end_line, end_col = end - token = re.sub(r'(?', 'exec')