From: Jelle Zijlstra Date: Fri, 9 Sep 2022 09:28:26 +0000 (-0700) Subject: [3.11] io: Add missing f (#96701) X-Git-Tag: v3.11.0rc2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7bfb11de6857e8b7e114c46d94624b57c589a69f;p=thirdparty%2FPython%2Fcpython.git [3.11] io: Add missing f (#96701) --- diff --git a/Lib/io.py b/Lib/io.py index a205e00575f7..a4186499c647 100644 --- a/Lib/io.py +++ b/Lib/io.py @@ -70,7 +70,7 @@ def __getattr__(name): global OpenWrapper OpenWrapper = open return OpenWrapper - raise AttributeError("module {__name__!r} has no attribute {name!r}") + raise AttributeError(f"module {__name__!r} has no attribute {name!r}") # Pretend this exception was created here. diff --git a/Misc/NEWS.d/next/Library/2022-09-08-23-23-24.gh-issue-96700.J0MQGK.rst b/Misc/NEWS.d/next/Library/2022-09-08-23-23-24.gh-issue-96700.J0MQGK.rst new file mode 100644 index 000000000000..5218f98cfea6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-09-08-23-23-24.gh-issue-96700.J0MQGK.rst @@ -0,0 +1 @@ +Fix incorrect error message in the :mod:`io` module.