]> granicus.if.org Git - python/commitdiff
#4752: actually use custom handler in example.
authorGeorg Brandl <georg@python.org>
Sat, 27 Dec 2008 17:42:40 +0000 (17:42 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 27 Dec 2008 17:42:40 +0000 (17:42 +0000)
Doc/library/socketserver.rst

index 7f4daad34160c9d2e747d5e3bdc34f351ecca306..786632edc24ca6fb4dd0f9253dc5516959253457 100644 (file)
@@ -448,7 +448,7 @@ This is the server side::
 
    if __name__ == "__main__":
       HOST, PORT = "localhost", 9999
-      server = SocketServer.UDPServer((HOST, PORT), BaseUDPRequestHandler)
+      server = SocketServer.UDPServer((HOST, PORT), MyUDPHandler)
       server.serve_forever()
 
 This is the client side::