diff options
author | Alexander Shadchin <alexandr.shadchin@gmail.com> | 2022-04-27 06:30:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 06:30:54 (GMT) |
commit | f882d33778ee2625ab32d90e28edb6878fb8af93 (patch) | |
tree | 15ceed9ad6e1461e0754b0c4e8f422326195a409 | |
parent | 80de0273c0caf8bae19787bb00255eb3fb2a2d0c (diff) | |
download | cpython-f882d33778ee2625ab32d90e28edb6878fb8af93.zip cpython-f882d33778ee2625ab32d90e28edb6878fb8af93.tar.gz cpython-f882d33778ee2625ab32d90e28edb6878fb8af93.tar.bz2 |
Fix missing `f` prefix on f-strings (GH-91910)
-rw-r--r-- | Lib/asyncio/base_events.py | 2 | ||||
-rw-r--r-- | Lib/multiprocessing/util.py | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 5eea165..fa00bf9 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -888,7 +888,7 @@ class BaseEventLoop(events.AbstractEventLoop): # non-mmap files even if sendfile is supported by OS raise exceptions.SendfileNotAvailableError( f"syscall sendfile is not available for socket {sock!r} " - "and file {file!r} combination") + f"and file {file!r} combination") async def _sock_sendfile_fallback(self, sock, file, offset, count): if offset: diff --git a/Lib/multiprocessing/util.py b/Lib/multiprocessing/util.py index 790955e..6ad4632 100644 --- a/Lib/multiprocessing/util.py +++ b/Lib/multiprocessing/util.py @@ -120,7 +120,7 @@ def is_abstract_socket_namespace(address): return address[0] == 0 elif isinstance(address, str): return address[0] == "\0" - raise TypeError('address type of {address!r} unrecognized') + raise TypeError(f'address type of {address!r} unrecognized') abstract_sockets_supported = _platform_supports_abstract_sockets() diff --git a/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst b/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst new file mode 100644 index 0000000..f41f357 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst @@ -0,0 +1 @@ +Add missing f prefix to f-strings in error messages from the :mod:`multiprocessing` and :mod:`asyncio` modules. |