bpo-41031: Match C and Python code formatting of unprintable exceptions and exceptions in the __main__ module. (GH-28139)

This commit is contained in:
Irit Katriel 2021-09-05 16:54:13 +01:00 committed by GitHub
parent b01fd533fe
commit 9e31b3952f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 55 additions and 14 deletions

View file

@ -169,7 +169,7 @@ def _some_str(value):
try:
return str(value)
except:
return '<unprintable %s object>' % type(value).__name__
return '<exception str() failed>'
# --