mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 14:02:22 +02:00
classes/lib: Complete transition to python3
This patch contains all the other misc pieces of the transition to python3 which didn't make sense to be broken into individual patches. (From OE-Core rev: fcd6b38bab8517d83e1ed48eef1bca9a9a190f57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import SimpleHTTPServer
|
||||
import http.server
|
||||
import multiprocessing
|
||||
import os
|
||||
|
||||
class HTTPServer(SimpleHTTPServer.BaseHTTPServer.HTTPServer):
|
||||
class HTTPServer(http.server.HTTPServer):
|
||||
|
||||
def server_start(self, root_dir):
|
||||
import signal
|
||||
@@ -10,7 +10,7 @@ class HTTPServer(SimpleHTTPServer.BaseHTTPServer.HTTPServer):
|
||||
os.chdir(root_dir)
|
||||
self.serve_forever()
|
||||
|
||||
class HTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||
class HTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||
|
||||
def log_message(self, format_str, *args):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user