diff options
author | Raymond Hettinger <python@rcn.com> | 2017-02-06 15:15:57 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2017-02-06 15:15:57 (GMT) |
commit | 0fa47469a9b1fc3436c783b766e07e9d7123f4eb (patch) | |
tree | 8aca1c992a485dfbecb131440a6bf841515bf787 /Doc/library/re.rst | |
parent | dd407d5006809646ff42ef1b120c67dc794418cf (diff) | |
parent | d0b915866625384a33e7fa8900669a978fe5cfa0 (diff) | |
download | cpython-0fa47469a9b1fc3436c783b766e07e9d7123f4eb.zip cpython-0fa47469a9b1fc3436c783b766e07e9d7123f4eb.tar.gz cpython-0fa47469a9b1fc3436c783b766e07e9d7123f4eb.tar.bz2 |
merge
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 adf3ddd..6e9343a 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 |