]> granicus.if.org Git - python/commitdiff
Issue 7363: fix indentation in socketserver udpserver example.
authorR. David Murray <rdmurray@bitdance.com>
Fri, 20 Nov 2009 13:29:43 +0000 (13:29 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Fri, 20 Nov 2009 13:29:43 +0000 (13:29 +0000)
Doc/library/socketserver.rst

index 2ed4935a1407a05a706a87ff07eb18a445d91ffe..fce216e88ad8d90fe5b1b43f9f43c06a08f92e0a 100644 (file)
@@ -455,9 +455,9 @@ This is the server side::
            socket.sendto(data.upper(), self.client_address)
 
    if __name__ == "__main__":
-      HOST, PORT = "localhost", 9999
-      server = SocketServer.UDPServer((HOST, PORT), MyUDPHandler)
-      server.serve_forever()
+       HOST, PORT = "localhost", 9999
+       server = SocketServer.UDPServer((HOST, PORT), MyUDPHandler)
+       server.serve_forever()
 
 This is the client side::