From: Raymond Hettinger Date: Mon, 6 Feb 2017 15:15:31 +0000 (-0800) Subject: Substitute a more readable f-string X-Git-Tag: v3.6.1rc1~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0b915866625384a33e7fa8900669a978fe5cfa0;p=python Substitute a more readable f-string --- 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