From 680241ec995b5ef1a27a7b4e6f42be16ec21dd25 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Fri, 27 Jun 2014 16:34:14 +0300 Subject: Fix indentation and class name in socket howto example. --- Doc/howto/sockets.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/howto/sockets.rst b/Doc/howto/sockets.rst index c04fd55..d5aff90 100644 --- a/Doc/howto/sockets.rst +++ b/Doc/howto/sockets.rst @@ -180,7 +180,7 @@ righter than others). Assuming you don't want to end the connection, the simplest solution is a fixed length message:: - class mysocket: + class MySocket: """demonstration class only - coded for clarity, not efficiency """ @@ -189,8 +189,8 @@ length message:: if sock is None: self.sock = socket.socket( socket.AF_INET, socket.SOCK_STREAM) - else: - self.sock = sock + else: + self.sock = sock def connect(self, host, port): self.sock.connect((host, port)) -- cgit v0.12