Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 680241e

Browse files
committed
Fix indentation and class name in socket howto example.
1 parent 80f53aa commit 680241e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/howto/sockets.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ righter than others).
180180
Assuming you don't want to end the connection, the simplest solution is a fixed
181181
length message::
182182

183-
class mysocket:
183+
class MySocket:
184184
"""demonstration class only
185185
- coded for clarity, not efficiency
186186
"""
@@ -189,8 +189,8 @@ length message::
189189
if sock is None:
190190
self.sock = socket.socket(
191191
socket.AF_INET, socket.SOCK_STREAM)
192-
else:
193-
self.sock = sock
192+
else:
193+
self.sock = sock
194194

195195
def connect(self, host, port):
196196
self.sock.connect((host, port))

0 commit comments

Comments
 (0)