Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit081e951

Browse files
Fix missingf prefix on f-strings (GH-91910)
(cherry picked from commitf882d33)Co-authored-by: Alexander Shadchin <alexandr.shadchin@gmail.com>
1 parentf4252df commit081e951

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

890890
asyncdef_sock_sendfile_fallback(self,sock,file,offset,count):
891891
ifoffset:

‎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
returnaddress[0]==0
121121
elifisinstance(address,str):
122122
returnaddress[0]=="\0"
123-
raiseTypeError('address type of {address!r} unrecognized')
123+
raiseTypeError(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)

[8]ページ先頭

©2009-2025 Movatter.jp