Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f53aa commit 680241eCopy full SHA for 680241e
1 file changed
Doc/howto/sockets.rst
@@ -180,7 +180,7 @@ righter than others).
180
Assuming you don't want to end the connection, the simplest solution is a fixed
181
length message::
182
183
- class mysocket:
+ class MySocket:
184
"""demonstration class only
185
- coded for clarity, not efficiency
186
"""
@@ -189,8 +189,8 @@ length message::
189
if sock is None:
190
self.sock = socket.socket(
191
socket.AF_INET, socket.SOCK_STREAM)
192
- else:
193
- self.sock = sock
+ else:
+ self.sock = sock
194
195
def connect(self, host, port):
196
self.sock.connect((host, port))
0 commit comments