diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2014-06-27 13:34:14 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2014-06-27 13:34:14 (GMT) |
commit | 680241ec995b5ef1a27a7b4e6f42be16ec21dd25 (patch) | |
tree | d720b5584c5709b0911db7d537b54f38cdf60607 /Doc | |
parent | 80f53aa9a0b2af28c9d8052c46b452cccb8e0b41 (diff) | |
download | cpython-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.rst | 6 |
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)) |