From: Georg Brandl Date: Sat, 27 Dec 2008 17:42:40 +0000 (+0000) Subject: #4752: actually use custom handler in example. X-Git-Tag: v2.7a1~2491 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bedc343145888438bd1c3affc066770dd4c52575;p=thirdparty%2FPython%2Fcpython.git #4752: actually use custom handler in example. --- diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst index 7f4daad34160..786632edc24c 100644 --- a/Doc/library/socketserver.rst +++ b/Doc/library/socketserver.rst @@ -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::