summaryrefslogtreecommitdiffstats
path: root/Lib/io.py
diff options
context:
space:
mode:
authorThomas Grainger <tagrain@gmail.com>2022-02-23 00:25:00 (GMT)
committerGitHub <noreply@github.com>2022-02-23 00:25:00 (GMT)
commit9b12b1b803d7b73640ab637a74a6f35f3fe9db21 (patch)
tree0cff9cacfc8102e694d6e47bf0301574700e0346 /Lib/io.py
parent1f455361ecfb1892e375bdbee813cdf095b6cfb8 (diff)
downloadcpython-9b12b1b803d7b73640ab637a74a6f35f3fe9db21.zip
cpython-9b12b1b803d7b73640ab637a74a6f35f3fe9db21.tar.gz
cpython-9b12b1b803d7b73640ab637a74a6f35f3fe9db21.tar.bz2
bpo-46522: fix concurrent.futures and io AttributeError messages (GH-30887)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 2a6140c..a205e00 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -70,7 +70,7 @@ def __getattr__(name):
global OpenWrapper
OpenWrapper = open
return OpenWrapper
- raise AttributeError(name)
+ raise AttributeError("module {__name__!r} has no attribute {name!r}")
# Pretend this exception was created here.