]> granicus.if.org Git - python/commit
#6844: do not emit DeprecationWarnings on access if Exception.message has been set...
authorGeorg Brandl <georg@python.org>
Wed, 16 Sep 2009 20:30:09 +0000 (20:30 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 16 Sep 2009 20:30:09 +0000 (20:30 +0000)
commit0674d3fb5fb9adde412c15ea12b6b473e8895126
tree6e441bb57c8f1a7c90f29e2a060ca03ed57d0b80
parent4676048b437a696b42ecd4cf2c3b050e7d5154cc
#6844: do not emit DeprecationWarnings on access if Exception.message has been set by the user.

This works by always setting it in __dict__, except when it's implicitly set in __init__.
Lib/test/test_exceptions.py
Misc/NEWS
Objects/exceptions.c