diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-20 11:57:44 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:01 +0100 |
| commit | 3b3997174831931ea472167ba6cc854a4972ccce (patch) | |
| tree | 861b0bcb54e70fbe59bf7920862954dcec40a1e8 /meta/lib/oeqa/utils/httpserver.py | |
| parent | 52c4b7f247618f185a11dfb1cf15d0490d074379 (diff) | |
| download | poky-3b3997174831931ea472167ba6cc854a4972ccce.tar.gz | |
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>
Diffstat (limited to 'meta/lib/oeqa/utils/httpserver.py')
| -rw-r--r-- | meta/lib/oeqa/utils/httpserver.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/utils/httpserver.py b/meta/lib/oeqa/utils/httpserver.py index 76518d8ef9..bd76f36468 100644 --- a/meta/lib/oeqa/utils/httpserver.py +++ b/meta/lib/oeqa/utils/httpserver.py | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | import SimpleHTTPServer | 1 | import http.server |
| 2 | import multiprocessing | 2 | import multiprocessing |
| 3 | import os | 3 | import os |
| 4 | 4 | ||
| 5 | class HTTPServer(SimpleHTTPServer.BaseHTTPServer.HTTPServer): | 5 | class HTTPServer(http.server.HTTPServer): |
| 6 | 6 | ||
| 7 | def server_start(self, root_dir): | 7 | def server_start(self, root_dir): |
| 8 | import signal | 8 | import signal |
| @@ -10,7 +10,7 @@ class HTTPServer(SimpleHTTPServer.BaseHTTPServer.HTTPServer): | |||
| 10 | os.chdir(root_dir) | 10 | os.chdir(root_dir) |
| 11 | self.serve_forever() | 11 | self.serve_forever() |
| 12 | 12 | ||
| 13 | class HTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | 13 | class HTTPRequestHandler(http.server.SimpleHTTPRequestHandler): |
| 14 | 14 | ||
| 15 | def log_message(self, format_str, *args): | 15 | def log_message(self, format_str, *args): |
| 16 | pass | 16 | pass |
