]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Fix typos 164/head
authorJakub Wilk <jwilk@jwilk.net>
Thu, 26 May 2016 21:40:29 +0000 (23:40 +0200)
committerJakub Wilk <jwilk@jwilk.net>
Thu, 26 May 2016 21:40:29 +0000 (23:40 +0200)
13 files changed:
ChangeLog
README.md
dns/edns.py
dns/exception.py
dns/message.py
dns/name.py
dns/rcode.py
dns/rdata.py
dns/renderer.py
dns/zone.py
examples/zonediff.py
tests/test_dnssec.py
tests/test_zone.py

index 6cda9e79271fc8e8d8a64002b0e81feff88699f4..296ec28ffe8fea3b9e002fe625395dc392727049 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -44,7 +44,7 @@
 
        * Comparing two rdata is now always done by comparing the binary
          data of the DNSSEC digestable forms.  This corrects a number of
-         errors where dnspython's rdata comparsion order was not the
+         errors where dnspython's rdata comparison order was not the
          DNSSEC order.
 
        * Add CAA implementation.  Thanks to Brian Wellington for the
 2003-11-13  Bob Halley  <halley@dnspython.org>
 
         * dns/rdtypes/ANY/LOC.py (LOC.to_wire): We encoded and decoded LOC
-        incorrectly, since we were interpreting the values of altitiude,
+        incorrectly, since we were interpreting the values of altitude,
         size, hprec, and vprec in meters instead of centimeters.
 
         * dns/rdtypes/IN/WKS.py (WKS.from_wire): The WKS protocol value is
 
                 bar.foo 300 IN MX 0 blaz.foo
 
-        after the second step (relativiation to zone origin).
+        after the second step (relativization to zone origin).
 
         * dns/namedict.py: added.
 
         * dns/renderer.py: added new wire format rendering module and
         converted message.py to use it.  Applications which want
         fine-grained control over the conversion to wire format may call
-        the renderer directy, instead of having it called on their behalf
+        the renderer directly, instead of having it called on their behalf
         by the message code.
 
 2003-07-02  Bob Halley  <halley@dnspython.org>
index bb5b5e363a2faa7f184cf386cc17958c0530011e..7e21d760344f53e0631bd41cd791a747a43dbeb5 100644 (file)
--- a/README.md
+++ b/README.md
@@ -156,7 +156,7 @@ New since 1.9.4:
        dns.resolver.query() will try TCP if a UDP response is
        truncated.
 
-       The python socket module's DNS methods can be now be overriden
+       The python socket module's DNS methods can be now be overridden
        with implementations that use dnspython's resolver.
 
        Old DNSSEC types KEY, NXT, and SIG have been removed.
@@ -310,7 +310,7 @@ New since 1.7.0:
 
 Bugs fixed since 1.7.0:
 
-       The 1.7.0 kitting process inadventently omitted the code for the
+       The 1.7.0 kitting process inadvertently omitted the code for the
        DLV RR.
 
        Negative DDNS prerequisites are now handled correctly.
index c6102fd7ea1dfb0ff34a74346811256f2be63a95..8ac676bc62108d991c6d4dc35a507084b2baa454 100644 (file)
@@ -43,7 +43,7 @@ class Option(object):
         @type otype: int
         @param wire: The wire-format message
         @type wire: string
-        @param current: The offet in wire of the beginning of the rdata.
+        @param current: The offset in wire of the beginning of the rdata.
         @type current: int
         @param olen: The length of the wire-format option data
         @type olen: int
@@ -140,7 +140,7 @@ def option_from_wire(otype, wire, current, olen):
     @type otype: int
     @param wire: The wire-format message
     @type wire: string
-    @param current: The offet in wire of the beginning of the rdata.
+    @param current: The offset in wire of the beginning of the rdata.
     @type current: int
     @param olen: The length of the wire-format option data
     @type olen: int
index 799d53ad59187ebfb3dcac7a4ab4d5990eba97b1..62fbe2cb0c660e93da6c237217ffbb51b49e7027 100644 (file)
@@ -34,7 +34,7 @@ class DNSException(Exception):
     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
-    formated message based on self.fmt string.
+    formatted message based on self.fmt string.
 
     In the simplest case it is enough to override supp_kwargs and fmt
     class variables to get nice parametrized messages.
index 184100dab9b88cee176ba45af57b26c07d22d5ac..9b8dcd0fa012c1779c88cdd4295198eb2a7e3431 100644 (file)
@@ -58,13 +58,13 @@ class UnknownHeaderField(dns.exception.DNSException):
 
 class BadEDNS(dns.exception.FormError):
 
-    """OPT record occured somewhere other than the start of
+    """OPT record occurred somewhere other than the start of
     the additional data section."""
 
 
 class BadTSIG(dns.exception.FormError):
 
-    """A TSIG record occured somewhere other than the end of
+    """A TSIG record occurred somewhere other than the end of
     the additional data section."""
 
 
@@ -1050,7 +1050,7 @@ def make_query(qname, rdtype, rdclass=dns.rdataclass.IN, use_edns=None,
     The query name, type, and class may all be specified either
     as objects of the appropriate type, or as strings.
 
-    The query will have a randomly choosen query id, and its DNS flags
+    The query will have a randomly chosen query id, and its DNS flags
     will be set to dns.flags.RD.
 
     @param qname: The query name.
index e5b0107b9f377015511f601cc012f7a0c3eaf29c..2a74694ccba3f59800bf4a808cdfb75205724940 100644 (file)
@@ -226,7 +226,7 @@ class Name(object):
     def fullcompare(self, other):
         """Compare two names, returning a 3-tuple (relation, order, nlabels).
 
-        I{relation} describes the relation ship beween the names,
+        I{relation} describes the relation ship between the names,
         and is one of: dns.name.NAMERELN_NONE,
         dns.name.NAMERELN_SUPERDOMAIN, dns.name.NAMERELN_SUBDOMAIN,
         dns.name.NAMERELN_EQUAL, or dns.name.NAMERELN_COMMONANCESTOR
@@ -379,7 +379,7 @@ class Name(object):
     def to_unicode(self, omit_final_dot=False):
         """Convert name to Unicode text format.
 
-        IDN ACE lables are converted to Unicode.
+        IDN ACE labels are converted to Unicode.
 
         @param omit_final_dot: If True, don't emit the final dot (denoting the
         root label) for absolute names.  The default is False.
@@ -587,7 +587,7 @@ empty = Name([])
 def from_unicode(text, origin=root):
     """Convert unicode text into a Name object.
 
-    Lables are encoded in IDN ACE form.
+    Labels are encoded in IDN ACE form.
 
     @rtype: dns.name.Name object
     """
index 698ad25cc3dcb0c69a90895c9521a1d1b223b082..314815f7c5aa9dfbff0b82b815fb49d42465f8e8 100644 (file)
@@ -62,7 +62,7 @@ class UnknownRcode(dns.exception.DNSException):
 def from_text(text):
     """Convert text into an rcode.
 
-    @param text: the texual rcode
+    @param text: the textual rcode
     @type text: string
     @raises UnknownRcode: the rcode is unknown
     @rtype: int
index cb8c27436308c89fcfba6d5b196e94d93a1849e9..824731c7eea183a8b2599fe26661cb5a6add2fa1 100644 (file)
@@ -286,7 +286,7 @@ class Rdata(object):
         @type rdtype: int
         @param wire: The wire-format message
         @type wire: string
-        @param current: The offet in wire of the beginning of the rdata.
+        @param current: The offset in wire of the beginning of the rdata.
         @type current: int
         @param rdlen: The length of the wire-format rdata
         @type rdlen: int
@@ -451,7 +451,7 @@ def from_wire(rdclass, rdtype, wire, current, rdlen, origin=None):
     @type rdtype: int
     @param wire: The wire-format message
     @type wire: string
-    @param current: The offet in wire of the beginning of the rdata.
+    @param current: The offset in wire of the beginning of the rdata.
     @type current: int
     @param rdlen: The length of the wire-format rdata
     @type rdlen: int
index ed3ec66ef7c944839114a4b62b0180151ff6fa5b..ddc277cd4966235b40b3cc51656aed81de0d34ce 100644 (file)
@@ -88,7 +88,7 @@ class Renderer(object):
         then L{dns.exception.TooBig} will be raised.
         @type max_size: int
         @param origin: the origin to use when rendering relative names
-        @type origin: dns.name.Namem or None.
+        @type origin: dns.name.Name or None.
         """
 
         self.output = BytesIO()
index 81e0fcffadb2de769d5d107214b0dd1796c98079..ae099bd8539feddc659749ca7d375ff9e2fb814a 100644 (file)
@@ -94,7 +94,7 @@ class Zone(object):
             if isinstance(origin, string_types):
                 origin = dns.name.from_text(origin)
             elif not isinstance(origin, dns.name.Name):
-                raise ValueError("origin parameter must be convertable to a "
+                raise ValueError("origin parameter must be convertible to a "
                                  "DNS name")
             if not origin.is_absolute():
                 raise ValueError("origin parameter must be an absolute name")
@@ -128,7 +128,7 @@ class Zone(object):
         if isinstance(name, string_types):
             name = dns.name.from_text(name, None)
         elif not isinstance(name, dns.name.Name):
-            raise KeyError("name parameter must be convertable to a DNS name")
+            raise KeyError("name parameter must be convertible to a DNS name")
         if name.is_absolute():
             if not name.is_subdomain(self.origin):
                 raise KeyError(
index ad81fb1d2d4868534dad2230d3776b9449722864..0c101781a3ec0c9732a835e511c7b1438fba6873 100755 (executable)
@@ -199,7 +199,7 @@ The differences shown will be logical differences, not textual differences.
         p.print_help()
         sys.exit(64)
 
-    # Open file desriptors
+    # Open file descriptors
     if not opts.use_vc:
         oldn, newn = args
     else:
index e972a85733239afb3fb6e34529437e7ca198791e..83d548d836111809d478b90028787131902353d1 100644 (file)
@@ -209,13 +209,13 @@ class DNSSECValidatorTestCase(unittest.TestCase):
         self.failUnlessRaises(dns.dnssec.ValidationFailure, bad)
 
     @unittest.skipIf(not dns.dnssec._have_ecdsa,
-                     "python ECDSA can not be imported")
+                     "python ECDSA cannot be imported")
     def testAbsoluteECDSA384Good(self):
         dns.dnssec.validate(abs_ecdsa384_soa, abs_ecdsa384_soa_rrsig,
                             abs_ecdsa384_keys, None, when4)
 
     @unittest.skipIf(not dns.dnssec._have_ecdsa,
-                     "python ECDSA can not be imported")
+                     "python ECDSA cannot be imported")
     def testAbsoluteECDSA384Bad(self):
         def bad():
             dns.dnssec.validate(abs_other_ecdsa384_soa, abs_ecdsa384_soa_rrsig,
index 9338f53c9ee697961940a6b9a9730f4a00b2b104..2123707ed32db9d5c30619cc5cb24277a0827448 100644 (file)
@@ -414,7 +414,7 @@ class ZoneTestCase(unittest.TestCase):
         self.failUnlessRaises(dns.exception.SyntaxError, bad)
 
     def testFirstRRStartsWithWhitespace(self):
-        # no name is specified, so default to the intial origin
+        # no name is specified, so default to the initial origin
         # no ttl is specified, so default to the initial TTL of 0
         z = dns.zone.from_text(' IN A 10.0.0.1', origin='example.',
                                check_origin=False)