gh-116871: Improve name suggestions in tracebacks (GH-116930)

Only include underscored names in name suggestions for AttributeError and
ImportError if the original name was underscored.
This commit is contained in:
Serhiy Storchaka 2024-05-06 15:53:15 +03:00 • committed by GitHub
parent d6fa1d4bee
commit 0085c3ae8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,2 @@
Name suggestions for :exc:`AttributeError` and :exc:`ImportError` now only
include underscored names if the original name was underscored.