]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
fix function signature and documentation of handle() method
authorBob Halley <halley@dnspython.org>
Wed, 14 Apr 2021 15:52:44 +0000 (08:52 -0700)
committerBob Halley <halley@dnspython.org>
Wed, 14 Apr 2021 15:52:44 +0000 (08:52 -0700)
tests/nanonameserver.py

index 33452ea2512c95cd7d3db577cace2e5def5d006e..69755ea38717e44d6894f639531e8eb8b3009407 100644 (file)
@@ -160,9 +160,9 @@ class Server(threading.Thread):
         finally:
             raise EOFError
 
-    def handle(self, message, peer, connection_type):
+    def handle(self, request):
         #
-        # Handle message 'message'.  Override this method to change
+        # Handle request 'request'.  Override this method to change
         # how the server behaves.
         #
         # The return value is either a dns.message.Message, a bytes,