Substitute a more readable f-string

This commit is contained in:
Raymond Hettinger 2017-02-06 07:15:31 -08:00
parent d93c4de522
commit d0b9158666
1 changed files with 1 additions and 1 deletions

View File

@ -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