]> 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 Spacek <pspacek@redhat.com>
Wed, 25 Mar 2015 08:29:36 +0000 (09:29 +0100)
commita6532c257016f583c0dda14b4e354fb40811edb4
tree378787f1fdb57c65692a64ae66e5f563524e2c7f
parent3498440851ad2b74d55e6068d339789989d09eca
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