Remove Python 2 compatibility logic in httpd test script

This commit is contained in:
Jon Siwek 2020-11-24 20:28:29 -08:00
parent 9717c623c2
commit 7d68f2ce9d

View file

@ -1,11 +1,6 @@
#! /usr/bin/env python3 #! /usr/bin/env python3
try: import http.server as BaseHTTPServer
# Python 2
import BaseHTTPServer
except ImportError:
# Python 3
import http.server as BaseHTTPServer
class MyRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): class MyRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):