summaryrefslogtreecommitdiffstats
path: root/Lib/http/server.py
diff options
context:
space:
mode:
authorGéry Ogam <gery.ogam@gmail.com>2018-05-29 20:10:30 (GMT)
committerJulien Palard <julien@palard.fr>2018-05-29 20:10:30 (GMT)
commit1cee216cf383eade641aed22f4ec7d4cb565ecff (patch)
treec4b639b67e81692e14bb94e9529f8147d2e79fb8 /Lib/http/server.py
parent5d97b7bcc19496617bf8c448d2f149cc28c73bc7 (diff)
downloadcpython-1cee216cf383eade641aed22f4ec7d4cb565ecff.zip
cpython-1cee216cf383eade641aed22f4ec7d4cb565ecff.tar.gz
cpython-1cee216cf383eade641aed22f4ec7d4cb565ecff.tar.bz2
bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195)
Diffstat (limited to 'Lib/http/server.py')
-rw-r--r--Lib/http/server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py
index a2726ab..ea0e295 100644
--- a/Lib/http/server.py
+++ b/Lib/http/server.py
@@ -83,7 +83,7 @@ XXX To do:
__version__ = "0.6"
__all__ = [
- "HTTPServer", "ThreadedHTTPServer", "BaseHTTPRequestHandler",
+ "HTTPServer", "ThreadingHTTPServer", "BaseHTTPRequestHandler",
"SimpleHTTPRequestHandler", "CGIHTTPRequestHandler",
]
@@ -140,7 +140,7 @@ class HTTPServer(socketserver.TCPServer):
self.server_port = port
-class ThreadedHTTPServer(socketserver.ThreadingMixIn, HTTPServer):
+class ThreadingHTTPServer(socketserver.ThreadingMixIn, HTTPServer):
daemon_threads = True
@@ -1217,7 +1217,7 @@ class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
def test(HandlerClass=BaseHTTPRequestHandler,
- ServerClass=ThreadedHTTPServer,
+ ServerClass=ThreadingHTTPServer,
protocol="HTTP/1.0", port=8000, bind=""):
"""Test the HTTP request handler class.