summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2017-02-06 15:15:31 (GMT)
committerRaymond Hettinger <python@rcn.com>2017-02-06 15:15:31 (GMT)
commitd0b915866625384a33e7fa8900669a978fe5cfa0 (patch)
tree4a3495db4302db136d326586bd043ea500ce9ac9 /Doc
parentd93c4de52225e2bb1c486a07a6f1e3633d0011c4 (diff)
downloadcpython-d0b915866625384a33e7fa8900669a978fe5cfa0.zip
cpython-d0b915866625384a33e7fa8900669a978fe5cfa0.tar.gz
cpython-d0b915866625384a33e7fa8900669a978fe5cfa0.tar.bz2
Substitute a more readable f-string
Diffstat (limited to 'Doc')
-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 7ef4cbe..fe5ebcc 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