Skip to content

Commit 03b1f45

Browse files
committed
Remove : in AttributeError path
1 parent 5ab2311 commit 03b1f45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/traceback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,9 +1133,9 @@ 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-
self._str += f". Did you mean: '.{suggestion}' instead of '.{wrong_name}'?"
1136+
self._str += f". Did you mean '.{suggestion}' instead of '.{wrong_name}'?"
11371137
else:
1138-
self._str += f". Did you mean: '.{suggestion}' ({suggestion!a}) instead of '.{wrong_name}'?"
1138+
self._str += f". Did you mean '.{suggestion}' ({suggestion!a}) instead of '.{wrong_name}'?"
11391139
elif exc_type and issubclass(exc_type, NameError) and \
11401140
getattr(exc_value, "name", None) is not None:
11411141
wrong_name = getattr(exc_value, "name", None)

0 commit comments

Comments
 (0)