Fix missing f prefix on f-strings (GH-91910)

(cherry picked from commit f882d33778)

Co-authored-by: Alexander Shadchin <alexandr.shadchin@gmail.com>
This commit is contained in:
Miss Islington (bot) 2022-04-27 00:08:05 -07:00 committed by GitHub
parent dbe666d398
commit 280749a8fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -884,7 +884,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:

View file

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

View file

@ -0,0 +1 @@
Add missing f prefix to f-strings in error messages from the :mod:`multiprocessing` and :mod:`asyncio` modules.