Skip to content

Commit 280749a

Browse files
Fix missing f prefix on f-strings (GH-91910)
(cherry picked from commit f882d33) Co-authored-by: Alexander Shadchin <[email protected]>
1 parent dbe666d commit 280749a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ async def _sock_sendfile_native(self, sock, file, offset, count):
884884
# non-mmap files even if sendfile is supported by OS
885885
raise exceptions.SendfileNotAvailableError(
886886
f"syscall sendfile is not available for socket {sock!r} "
887-
"and file {file!r} combination")
887+
f"and file {file!r} combination")
888888

889889
async def _sock_sendfile_fallback(self, sock, file, offset, count):
890890
if offset:

Lib/multiprocessing/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def is_abstract_socket_namespace(address):
120120
return address[0] == 0
121121
elif isinstance(address, str):
122122
return address[0] == "\0"
123-
raise TypeError('address type of {address!r} unrecognized')
123+
raise TypeError(f'address type of {address!r} unrecognized')
124124

125125

126126
abstract_sockets_supported = _platform_supports_abstract_sockets()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add missing f prefix to f-strings in error messages from the :mod:`multiprocessing` and :mod:`asyncio` modules.

0 commit comments

Comments
 (0)