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

Skip to content

Commit 599d76b

Browse files
committed
Reformat paragraphs.
1 parent 45c6c3e commit 599d76b

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

Doc/library/socketserver.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ process one or many requests.
3939

4040
When inheriting from :class:`ThreadingMixIn` for threaded connection behavior,
4141
you should explicitly declare how you want your threads to behave on an abrupt
42-
shutdown. The :class:`ThreadingMixIn` class defines an attribute
42+
shutdown. The :class:`ThreadingMixIn` class defines an attribute
4343
*daemon_threads*, which indicates whether or not the server should wait for
44-
thread termination. You should set the flag explicitly if you would like threads
45-
to behave autonomously; the default is :const:`False`, meaning that Python will
46-
not exit until all threads created by :class:`ThreadingMixIn` have exited.
44+
thread termination. You should set the flag explicitly if you would like
45+
threads to behave autonomously; the default is :const:`False`, meaning that
46+
Python will not exit until all threads created by :class:`ThreadingMixIn` have
47+
exited.
4748

4849
Server classes have the same external methods and attributes, no matter what
4950
network protocol they use.
@@ -115,8 +116,8 @@ or inappropriate for the service) is to maintain an explicit table of partially
115116
finished requests and to use :func:`select` to decide which request to work on
116117
next (or whether to handle a new incoming request). This is particularly
117118
important for stream services where each client can potentially be connected for
118-
a long time (if threads or subprocesses cannot be used). See :mod:`asyncore` for
119-
another way to manage this.
119+
a long time (if threads or subprocesses cannot be used). See :mod:`asyncore`
120+
for another way to manage this.
120121

121122
.. XXX should data and methods be intermingled, or separate?
122123
how should the distinction between class and instance variables be drawn?
@@ -192,7 +193,7 @@ The server classes support the following class variables:
192193
193194
.. attribute:: BaseServer.allow_reuse_address
194195

195-
Whether the server will allow the reuse of an address. This defaults to
196+
Whether the server will allow the reuse of an address. This defaults to
196197
:const:`False`, and can be set in subclasses to change the policy.
197198

198199

@@ -269,7 +270,7 @@ users of the server object.
269270
.. method:: BaseServer.server_activate()
270271

271272
Called by the server's constructor to activate the server. The default behavior
272-
just :meth:`listen`\ s to the server's socket. May be overridden.
273+
just :meth:`listen`\ s to the server's socket. May be overridden.
273274

274275

275276
.. method:: BaseServer.server_bind()
@@ -280,10 +281,10 @@ users of the server object.
280281

281282
.. method:: BaseServer.verify_request(request, client_address)
282283

283-
Must return a Boolean value; if the value is :const:`True`, the request will be
284-
processed, and if it's :const:`False`, the request will be denied. This function
285-
can be overridden to implement access controls for a server. The default
286-
implementation always returns :const:`True`.
284+
Must return a Boolean value; if the value is :const:`True`, the request will
285+
be processed, and if it's :const:`False`, the request will be denied. This
286+
function can be overridden to implement access controls for a server. The
287+
default implementation always returns :const:`True`.
287288

288289

289290
RequestHandler Objects

0 commit comments

Comments
 (0)