Skip to content

Commit

Permalink
Merge pull request #41 from felixonmars/patch-1
Browse files Browse the repository at this point in the history
Correct typos in dns.py
  • Loading branch information
paulc authored Sep 19, 2022
2 parents ce07017 + dd2c49c commit bc85337
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dnslib/dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def add_ar(self,*ar):

def set_header_qa(self):
"""
Reset header q/a/auth/ar counts to match numver of records
Reset header q/a/auth/ar counts to match number of records
(normally done transparently)
"""
self.header.q = len(self.questions)
Expand Down Expand Up @@ -981,7 +981,7 @@ class RD(object):
To create a new RD type subclass this and add to RDMAP (below)
Subclass should implement (as a mininum):
Subclass should implement (as a minimum):
parse (parse from packet data)
__init__ (create class)
Expand Down Expand Up @@ -1069,7 +1069,7 @@ def _bytes_to_printable(b):
class TXT(RD):
"""
DNS TXT record. Pass in either a single byte/unicode string, or a tuple/list of byte/unicode strings.
(byte strings are prefered as this avoids possible encoding issues)
(byte strings are preferred as this avoids possible encoding issues)
>>> TXT(b'txtvers=1')
"txtvers=1"
Expand Down

0 comments on commit bc85337

Please sign in to comment.