diff --git a/app/server/index.py b/app/server/index.py index 0c5ca18d..27515b71 100644 --- a/app/server/index.py +++ b/app/server/index.py @@ -3,9 +3,13 @@ from __future__ import print_function import os import sys -from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer, test as _test +if sys.version_info[0] < 3: + from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer, test as _test + from SocketServer import ThreadingMixIn +else: + from http.server import BaseHTTPRequestHandler, HTTPServer, test as _test + from socketserver import ThreadingMixIn import subprocess -from SocketServer import ThreadingMixIn import argparse