diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2014-06-27 13:34:57 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2014-06-27 13:34:57 (GMT) |
commit | 7b2ecc40a9fdf134e433eb9a5c411bcce15bacf4 (patch) | |
tree | cf290063deba8ce230e0ace43c4ae37eeef2307a /Doc/howto/sockets.rst | |
parent | eb39199f3def654b502bc8362d241bcbcc2891c7 (diff) | |
parent | 680241ec995b5ef1a27a7b4e6f42be16ec21dd25 (diff) | |
download | cpython-7b2ecc40a9fdf134e433eb9a5c411bcce15bacf4.zip cpython-7b2ecc40a9fdf134e433eb9a5c411bcce15bacf4.tar.gz cpython-7b2ecc40a9fdf134e433eb9a5c411bcce15bacf4.tar.bz2 |
Merge socket howto fixes from 3.4.
Diffstat (limited to 'Doc/howto/sockets.rst')
-rw-r--r-- | Doc/howto/sockets.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/sockets.rst b/Doc/howto/sockets.rst index ac6ede9..04394d4 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)) |