From 8df7dc30c0652e73cff28bc952104640bd76006e Mon Sep 17 00:00:00 2001 From: Alexander Shadchin Date: Mon, 25 Apr 2022 17:10:36 +0300 Subject: [PATCH 1/4] Missing `f` prefix on f-strings --- Lib/asyncio/base_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 5eea1658df8f6f..fa00bf9a2ca090 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -888,7 +888,7 @@ async def _sock_sendfile_native(self, sock, file, offset, count): # 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: From c0b9a0672fc67832866e6294d03f872492ce68f4 Mon Sep 17 00:00:00 2001 From: Alexander Shadchin Date: Mon, 25 Apr 2022 17:14:41 +0300 Subject: [PATCH 2/4] Missing `f` prefix on f-strings --- Lib/multiprocessing/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/multiprocessing/util.py b/Lib/multiprocessing/util.py index abbc4c5e6088b2..4aca045bb043fe 100644 --- a/Lib/multiprocessing/util.py +++ b/Lib/multiprocessing/util.py @@ -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() From ef5bf4e0a4e73fead7a53e5f847b4bb1843a8109 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 25 Apr 2022 14:18:02 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst diff --git a/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst b/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst new file mode 100644 index 00000000000000..009ba4d0e2b79a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst @@ -0,0 +1 @@ +Missing f prefix on f-strings From cff3ab216c1b3d49509ddd862e2c0993954ec41b Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 26 Apr 2022 07:12:51 -0700 Subject: [PATCH 4/4] Update Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst --- .../next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst b/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst index 009ba4d0e2b79a..f41f357ddfcc3a 100644 --- a/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst +++ b/Misc/NEWS.d/next/Library/2022-04-25-14-18-01.gh-issue-91910.kY-JR0.rst @@ -1 +1 @@ -Missing f prefix on f-strings +Add missing f prefix to f-strings in error messages from the :mod:`multiprocessing` and :mod:`asyncio` modules.