cpython (3.4): Fix indentation and class name in socket howto example.
![](https://secure.gravatar.com/avatar/8ac615df352a970211b0e3d94a307c6d.jpg?s=120&d=mm&r=g)
http://hg.python.org/cpython/rev/e3f0347e682e changeset: 91446:e3f0347e682e branch: 3.4 parent: 91444:8fb489a8eb28 user: Ezio Melotti <ezio.melotti@gmail.com> date: Fri Jun 27 16:34:14 2014 +0300 summary: Fix indentation and class name in socket howto example. files: Doc/howto/sockets.rst | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/howto/sockets.rst b/Doc/howto/sockets.rst --- a/Doc/howto/sockets.rst +++ b/Doc/howto/sockets.rst @@ -180,7 +180,7 @@ 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 @@ 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)) -- Repository URL: http://hg.python.org/cpython
participants (1)
-
ezio.melotti