summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2014-06-27 16:34:57 +0300
committerEzio Melotti <ezio.melotti@gmail.com>2014-06-27 16:34:57 +0300
commit7b2ecc40a9fdf134e433eb9a5c411bcce15bacf4 (patch)
treecf290063deba8ce230e0ace43c4ae37eeef2307a /Doc
parenteb39199f3def654b502bc8362d241bcbcc2891c7 (diff)
parent680241ec995b5ef1a27a7b4e6f42be16ec21dd25 (diff)
downloadcpython-git-7b2ecc40a9fdf134e433eb9a5c411bcce15bacf4.tar.gz
Merge socket howto fixes from 3.4.
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 ac6ede9e97..04394d49f0 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))