[Python-checkins] cpython (3.6): Substitute a more readable f-string

raymond.hettinger python-checkins at python.org
Mon Feb 6 10:16:04 EST 2017


https://hg.python.org/cpython/rev/844ce25a0617
changeset:   106449:844ce25a0617
branch:      3.6
parent:      106444:764a9905588f
user:        Raymond Hettinger <python at rcn.com>
date:        Mon Feb 06 07:15:31 2017 -0800
summary:
  Substitute a more readable f-string

files:
  Doc/library/re.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -1465,7 +1465,7 @@
             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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list