From 7d68f2ce9dd50c634b8dfb2b4f34d053918c805e Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Tue, 24 Nov 2020 20:28:29 -0800 Subject: [PATCH] Remove Python 2 compatibility logic in httpd test script --- testing/scripts/httpd.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/testing/scripts/httpd.py b/testing/scripts/httpd.py index c5cc4507b7..7ecfb636e9 100755 --- a/testing/scripts/httpd.py +++ b/testing/scripts/httpd.py @@ -1,11 +1,6 @@ #! /usr/bin/env python3 -try: - # Python 2 - import BaseHTTPServer -except ImportError: - # Python 3 - import http.server as BaseHTTPServer +import http.server as BaseHTTPServer class MyRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):