diff options
author | Raymond Hettinger <python@rcn.com> | 2017-02-06 07:15:31 -0800 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2017-02-06 07:15:31 -0800 |
commit | d0b915866625384a33e7fa8900669a978fe5cfa0 (patch) | |
tree | 4a3495db4302db136d326586bd043ea500ce9ac9 | |
parent | d93c4de52225e2bb1c486a07a6f1e3633d0011c4 (diff) | |
download | cpython-git-d0b915866625384a33e7fa8900669a978fe5cfa0.tar.gz |
Substitute a more readable f-string
-rw-r--r-- | Doc/library/re.rst | 2 |
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 |