]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Correct Message.is_response docstring 415/head
authorPeter Olson <peter.olson@gmail.com>
Sat, 29 Feb 2020 20:32:37 +0000 (12:32 -0800)
committerGitHub <noreply@github.com>
Sat, 29 Feb 2020 20:32:37 +0000 (12:32 -0800)
When testing responses, I discovered that the docstring for Message.is_response had the
comparison backwards, specifically in how the `QR` flag is checked. The documentation
was incorrectly updated in fc7db7da4284eedaa951e6acc34e6e6f94da1c64

dns/message.py

index e720a4e73c43c172d1de9c332ef26b3ad33345df..1c8f2dd7ce5a7831613ed5bd251d62933dd48ab4 100644 (file)
@@ -217,7 +217,7 @@ class Message(object):
         return not self.__eq__(other)
 
     def is_response(self, other):
-        """Is this message a response to *other*?
+        """Is *other* a response this message?
 
         Returns a ``bool``.
         """