summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2014-06-27 13:34:14 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2014-06-27 13:34:14 (GMT)
commit680241ec995b5ef1a27a7b4e6f42be16ec21dd25 (patch)
treed720b5584c5709b0911db7d537b54f38cdf60607 /Doc
parent80f53aa9a0b2af28c9d8052c46b452cccb8e0b41 (diff)
downloadcpython-680241ec995b5ef1a27a7b4e6f42be16ec21dd25.zip
cpython-680241ec995b5ef1a27a7b4e6f42be16ec21dd25.tar.gz
cpython-680241ec995b5ef1a27a7b4e6f42be16ec21dd25.tar.bz2
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 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))