From 7bfb11de6857e8b7e114c46d94624b57c589a69f Mon Sep 17 00:00:00 2001
From: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Date: Fri, 9 Sep 2022 02:28:26 -0700
Subject: [PATCH] [3.11] io: Add missing f (#96701)

---
 Lib/io.py                                                       | 2 +-
 .../next/Library/2022-09-08-23-23-24.gh-issue-96700.J0MQGK.rst  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 Misc/NEWS.d/next/Library/2022-09-08-23-23-24.gh-issue-96700.J0MQGK.rst

diff --git a/Lib/io.py b/Lib/io.py
index a205e00575f..a4186499c64 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 00000000000..5218f98cfea
--- /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.
-- 
GitLab