Mercurial > cpython
changeset 106449:844ce25a0617 3.6
Substitute a more readable f-string
author | Raymond Hettinger <python@rcn.com> |
---|---|
date | Mon, 06 Feb 2017 07:15:31 -0800 |
parents | 764a9905588f |
children | e06af4027546 9c325166ba5f |
files | Doc/library/re.rst |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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