summaryrefslogtreecommitdiff
path: root/Doc/library/socketserver.rst
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-07-26 11:18:21 +0200
committerMartin Panter <vadmium+py@gmail.com>2016-07-26 11:18:21 +0200
commit75fac880fc7f79951dc9c28b4997f8e7069bf07a (patch)
tree9e7ef8cd7cef9938735baadd71eb496d641649bf /Doc/library/socketserver.rst
parent83224228ea950cfea1d7abfc0173c29a9ba49fb0 (diff)
downloadcpython-75fac880fc7f79951dc9c28b4997f8e7069bf07a.tar.gz
Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.
Patch by Julien Palard.
Diffstat (limited to 'Doc/library/socketserver.rst')
-rw-r--r--Doc/library/socketserver.rst12
1 files changed, 9 insertions, 3 deletions
diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst
index 98d2c46701..087f4e0d45 100644
--- a/Doc/library/socketserver.rst
+++ b/Doc/library/socketserver.rst
@@ -479,7 +479,9 @@ This is the client side::
The output of the example should look something like this:
-Server::
+Server:
+
+.. code-block:: shell-session
$ python TCPServer.py
127.0.0.1 wrote:
@@ -487,7 +489,9 @@ Server::
127.0.0.1 wrote:
b'python is nice'
-Client::
+Client:
+
+.. code-block:: shell-session
$ python TCPClient.py hello world with TCP
Sent: hello world with TCP
@@ -599,7 +603,9 @@ An example for the :class:`ThreadingMixIn` class::
server.server_close()
-The output of the example should look something like this::
+The output of the example should look something like this:
+
+.. code-block:: shell-session
$ python ThreadedTCPServer.py
Server loop running in thread: Thread-1