]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Separate class docstring and default str() messages in DNSException.
authorPetr Spacek <pspacek@redhat.com>
Wed, 25 Mar 2015 08:22:35 +0000 (09:22 +0100)
committerPetr Viktorin <pviktori@redhat.com>
Thu, 21 May 2015 12:25:12 +0000 (14:25 +0200)
commit73544fe7ad500d792325fba01bebdedaf9f11f23
tree14d2352be0f52a73ffff72caf69228d3cd27fc42
parent0bda8c7d89079945c5873f87b8c45e9469a87d38
Separate class docstring and default str() messages in DNSException.

str() for non-parametrized exceptions still defaults to class docstring
but now it is possible to simply override the message by defining
class.msg variable.
dns/exception.py