]> granicus.if.org Git - python/commitdiff
FIX documentation and NEWS of ThreadedHTTPServer. (GH-6207) (GH-6302)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Mar 2018 08:33:47 +0000 (01:33 -0700)
committerNed Deily <nad@python.org>
Thu, 29 Mar 2018 08:33:47 +0000 (04:33 -0400)
(cherry picked from commit 79c3bab35cce55e6d175aff96a845bc6d932b203)

Co-authored-by: Julien Palard <julien@palard.fr>
Doc/library/http.server.rst
Misc/NEWS.d/next/Library/2017-12-27-21-55-19.bpo-31639.l3avDJ.rst

index 4fe46cba691f9398260a1520ab84f2c5d4a94015..278ae5537504566e3ed890e02266bb339d6a7bbe 100644 (file)
@@ -37,8 +37,11 @@ handler.  Code to create and run the server looks like this::
 
    This class is identical to HTTPServer but uses threads to handle
    requests by using the :class:`~socketserver.ThreadingMixin`. This
-   is usefull to handle web browsers pre-opening sockets, on which
-   :class:`HTTPServer` would wait indefinitly.
+   is useful to handle web browsers pre-opening sockets, on which
+   :class:`HTTPServer` would wait indefinitely.
+
+   .. versionadded:: 3.7
+
 
 The :class:`HTTPServer` and :class:`ThreadedHTTPServer` must be given
 a *RequestHandlerClass* on instantiation, of which this module
index e876f40813dec09cdf78c1f333bbca11330d0a31..581ac8266b16f83b0d49705a837f02ff04c55bef 100644 (file)
@@ -1,2 +1,2 @@
 http.server now exposes a ThreadedHTTPServer class and uses it when the
-module is invoked to cope with web browsers pre-opening sockets.
+module is run with ``-m`` to cope with web browsers pre-opening sockets.