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 | 95b272b4e0d5438a12702e51e05d03f5a5a8e505 (patch) | |
tree | 8269c43bb9e4329babb9b4006573786c7380ac8a | |
parent | 8618f33b984ad0b62f47c8d5805c08087c191b12 (diff) | |
download | cpython-95b272b4e0d5438a12702e51e05d03f5a5a8e505.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 |