8000 PEP 562: Fix example by adding repr in an error message (#2928) · python/peps@89ed2e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89ed2e4

Browse files
authored
PEP 562: Fix example by adding repr in an error message (#2928)
Fix example by adding repr in an error message.
1 parent aaede30 commit 89ed2e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep-0562.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ on module *instances*. For example::
4343
if name in deprecated_names:
4444
warn(f"{name} is deprecated", DeprecationWarning)
4545
return globals()[f"_deprecated_{name}"]
46-
raise AttributeError(f"module {__name__} has no attribute {name}")
46+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
4747

4848
# main.py
4949

0 commit comments

Comments
 (0)
0