From: Peter Olson Date: Sat, 29 Feb 2020 20:32:37 +0000 (-0800) Subject: Correct Message.is_response docstring X-Git-Tag: v2.0.0rc1~333^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9006d246b6e926e6d5ac077d9b6838ef4fd22f25;p=thirdparty%2Fdnspython.git Correct Message.is_response docstring 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 --- diff --git a/dns/message.py b/dns/message.py index e720a4e7..1c8f2dd7 100644 --- a/dns/message.py +++ b/dns/message.py @@ -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``. """