Fix missing f
prefix on f-strings (GH-91910)
This commit is contained in:
parent
80de0273c0
commit
f882d33778
@ -888,7 +888,7 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||||||
# non-mmap files even if sendfile is supported by OS
|
# non-mmap files even if sendfile is supported by OS
|
||||||
raise exceptions.SendfileNotAvailableError(
|
raise exceptions.SendfileNotAvailableError(
|
||||||
f"syscall sendfile is not available for socket {sock!r} "
|
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):
|
async def _sock_sendfile_fallback(self, sock, file, offset, count):
|
||||||
if offset:
|
if offset:
|
||||||
|
@ -120,7 +120,7 @@ def is_abstract_socket_namespace(address):
|
|||||||
return address[0] == 0
|
return address[0] == 0
|
||||||
elif isinstance(address, str):
|
elif isinstance(address, str):
|
||||||
return address[0] == "\0"
|
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()
|
abstract_sockets_supported = _platform_supports_abstract_sockets()
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
Add missing f prefix to f-strings in error messages from the :mod:`multiprocessing` and :mod:`asyncio` modules.
|
Loading…
x
Reference in New Issue
Block a user