We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 654d472 commit 99b0a6dCopy full SHA for 99b0a6d
Lib/_pyio.py
@@ -312,7 +312,7 @@ def __getattr__(name):
312
global OpenWrapper
313
OpenWrapper = open
314
return OpenWrapper
315
- raise AttributeError(name)
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
316
317
318
# In normal operation, both `UnsupportedOperation`s should be bound to the
Lib/io.py
@@ -70,7 +70,7 @@ def __getattr__(name):
70
71
72
73
+ raise AttributeError("module {__name__!r} has no attribute {name!r}")
74
75
76
# Pretend this exception was created here.
0 commit comments