summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Doc/library/re.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index adf3ddde23..6e9343a1b5 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -1465,7 +1465,7 @@ successive matches::
elif kind == 'SKIP':
pass
elif kind == 'MISMATCH':
- raise RuntimeError('%r unexpected on line %d' % (value, line_num))
+ raise RuntimeError(f'{value!r} unexpected on line {line_num}')
else:
if kind == 'ID' and value in keywords:
kind = value