8000 Fix missing `f` prefix on f-strings (GH-91910) · python/cpython@f882d33 · GitHub
[go: up one dir, main page]

Skip to content

Commit f882d33

Browse files
authored
Fix missing f prefix on f- 10000 strings (GH-91910)
1 parent 80de027 commit f882d33

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
@@ -888,7 +888,7 @@ async def _sock_sendfile_native(self, sock, file, offset, count):
888888
# non-mmap files even if sendfile is supported by OS
889889
raise exceptions.SendfileNotAvailableError(
890890
f"syscall sendfile is not available for socket {sock!r} "
891-
"and file {file!r} combination")
891+
f"and file {file!r} combination")
892892

893893
async def _sock_sendfile_fallback(self, sock, file, offset, count):
894894
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)
0