]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
fix minor doco errors.
authorBob Halley <halley@dnspython.org>
Tue, 20 Sep 2016 19:16:09 +0000 (12:16 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 20 Sep 2016 19:16:09 +0000 (12:16 -0700)
dns/exception.py
dns/resolver.py

index 151f58442f5242047680d077875cf300726c21f8..6c0b1f4b2a3d24af97f120cc4bd0f2c62aa13281 100644 (file)
@@ -23,14 +23,14 @@ class DNSException(Exception):
     It supports two basic modes of operation:
 
     a) Old/compatible mode is used if __init__ was called with
-       empty **kwargs.
+    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.
 
     b) New/parametrized mode is used if __init__ was called with
-       non-empty **kwargs.
+    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
index d1a38041c43441de0820e74c87b81fe901e7b88f..d20f80bc0ea716d2d018fbfe6d15e0644fb91e16 100644 (file)
@@ -135,8 +135,9 @@ class NoNameservers(dns.exception.DNSException):
 
     """All nameservers failed to answer the query.
 
-    @param errors: list of servers and respective errors
-    @type errors: [(server ip address, any object convertible to string)]
+    errors: list of servers and respective errors
+    The type of errors is
+    [(server ip address, any object convertible to string)].
     Non-empty errors list will add explanatory message ()
     """
 
@@ -431,7 +432,7 @@ class LRUCache(object):
         """Initialize a DNS cache.
 
         @param max_size: The maximum number of nodes to cache; the default is
-        100000. Must be > 1.
+        100,000. Must be greater than 1.
         @type max_size: int
         """
         self.data = {}