[Python-checkins] cpython (3.4): Fix indentation and class name in socket howto example.
ezio.melotti
python-checkins at python.org
Fri Jun 27 15:35:20 CEST 2014
http://hg.python.org/cpython/rev/e3f0347e682e
changeset: 91446:e3f0347e682e
branch: 3.4
parent: 91444:8fb489a8eb28
user: Ezio Melotti <ezio.melotti at 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
More information about the Python-checkins
mailing list