From b96e352c347b9a5924ac27b8014d730104c27d4c Mon Sep 17 00:00:00 2001 From: Emmanuel Blot Date: Sun, 12 Apr 2020 18:11:19 +0200 Subject: [PATCH] Do not use ThreadingHTTPServer which has only been introduced w/ Py3.7 --- pybootd/httpd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pybootd/httpd.py b/pybootd/httpd.py index d5fdbed..2005837 100755 --- a/pybootd/httpd.py +++ b/pybootd/httpd.py @@ -1,4 +1,4 @@ -# Copyright (c) 2010-2019 Emmanuel Blot +# Copyright (c) 2010-2020 Emmanuel Blot # Copyright (c) 2010-2011 Neotion # # This library is free software; you can redistribute it and/or @@ -19,7 +19,7 @@ from argparse import ArgumentParser, FileType from functools import partial -from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer +from http.server import SimpleHTTPRequestHandler, HTTPServer from os import getcwd from os.path import isfile, join as joinpath, realpath from sys import exit as sysexit, modules, stderr @@ -73,7 +73,7 @@ class HttpRequestHandler(SimpleHTTPRequestHandler): return False return True -class HttpServer(ThreadingHTTPServer): +class HttpServer(HTTPServer): HTTP_SECTION = 'httpd'