summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2017-02-06 07:15:31 -0800
committerRaymond Hettinger <python@rcn.com>2017-02-06 07:15:31 -0800
commitd0b915866625384a33e7fa8900669a978fe5cfa0 (patch)
tree4a3495db4302db136d326586bd043ea500ce9ac9
parentd93c4de52225e2bb1c486a07a6f1e3633d0011c4 (diff)
downloadcpython-git-d0b915866625384a33e7fa8900669a978fe5cfa0.tar.gz
Substitute a more readable f-string
-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 7ef4cbeee7..fe5ebcc67c 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