diff options
author | Raymond Hettinger <python@rcn.com> | 2017-02-06 15:15:31 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2017-02-06 15:15:31 (GMT) |
commit | d0b915866625384a33e7fa8900669a978fe5cfa0 (patch) | |
tree | 4a3495db4302db136d326586bd043ea500ce9ac9 /Doc/library/re.rst | |
parent | d93c4de52225e2bb1c486a07a6f1e3633d0011c4 (diff) | |
download | cpython-d0b915866625384a33e7fa8900669a978fe5cfa0.zip cpython-d0b915866625384a33e7fa8900669a978fe5cfa0.tar.gz cpython-d0b915866625384a33e7fa8900669a978fe5cfa0.tar.bz2 |
Substitute a more readable f-string
Diffstat (limited to 'Doc/library/re.rst')
-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 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 |