summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2014-06-27 16:34:14 +0300
committerEzio Melotti <ezio.melotti@gmail.com>2014-06-27 16:34:14 +0300
commit680241ec995b5ef1a27a7b4e6f42be16ec21dd25 (patch)
treed720b5584c5709b0911db7d537b54f38cdf60607 /Doc
parent80f53aa9a0b2af28c9d8052c46b452cccb8e0b41 (diff)
downloadcpython-git-680241ec995b5ef1a27a7b4e6f42be16ec21dd25.tar.gz
Fix indentation and class name in socket howto example.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/howto/sockets.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/sockets.rst b/Doc/howto/sockets.rst
index c04fd5577f..d5aff9081d 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))