summaryrefslogtreecommitdiff
path: root/dns/exception.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2016-12-31 10:28:34 -0800
committerBob Halley <halley@dnspython.org>2016-12-31 10:28:34 -0800
commit0c6df4e0b137c01474b6d679c5c262026f130b7d (patch)
tree984378d0d1c617f504c645936aea370c65f9a23f /dns/exception.py
parente6cf2eb5bcc164e84672d1c2c2f653da6406220e (diff)
downloaddnspython-0c6df4e0b137c01474b6d679c5c262026f130b7d.tar.gz
fix restructured text issues
Diffstat (limited to 'dns/exception.py')
-rw-r--r--dns/exception.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/dns/exception.py b/dns/exception.py
index 6c0b1f4..0e468c7 100644
--- a/dns/exception.py
+++ b/dns/exception.py
@@ -23,15 +23,15 @@ class DNSException(Exception):
It supports two basic modes of operation:
a) Old/compatible mode is used if __init__ was called with
- empty **kwargs.
- In compatible mode all *args are passed to standard Python Exception class
- as before and all *args are printed by standard __str__ implementation.
+ empty \**kwargs.
+ In compatible mode all \*args are passed to standard Python Exception class
+ as before and all \*args are printed by standard __str__ implementation.
Class variable msg (or doc string if msg is None) is returned from str()
- if *args is empty.
+ if \*args is empty.
b) New/parametrized mode is used if __init__ was called with
- non-empty **kwargs.
- In the new mode *args has to be empty and all kwargs has to exactly match
+ non-empty \**kwargs.
+ In the new mode \*args has to be empty and all kwargs has to exactly match
set in class variable self.supp_kwargs. All kwargs are stored inside
self.kwargs and used in new __str__ implementation to construct
formatted message based on self.fmt string.