Skip to content

Commit b253b1c

Browse files
authored
Remove unneeded comment (code is self-explanatory)
1 parent 5e14b5f commit b253b1c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/traceback.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,8 +1133,6 @@ def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None,
11331133
suggestion = _compute_suggestion_error(exc_value, exc_traceback, wrong_name)
11341134
if suggestion:
11351135
if suggestion.isascii():
1136-
# Prepending attribute accesses with a dot makes the message much clearer.
1137-
# See GH-144285.
11381136
self._str += f". Did you mean '.{suggestion}' instead of '.{wrong_name}'?"
11391137
else:
11401138
self._str += f". Did you mean: '.{suggestion}' ({suggestion!a}) instead of '.{wrong_name}' ({wrong_name!a})?"

0 commit comments

Comments
 (0)