Skip to content

Commit

Permalink
No longer depend on six
Browse files Browse the repository at this point in the history
Closes bazelbuild#16433.

PiperOrigin-RevId: 491312527
Change-Id: Ibb78bbd37113caf7e655bdabfd7fdd000189bd66
  • Loading branch information
limdor authored and copybara-github committed Nov 28, 2022
1 parent 0bc0ff5 commit 11cf743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/test/py/bazel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ py_test(
],
deps = [
":test_base",
"//third_party/py/six",
],
)

Expand Down
7 changes: 4 additions & 3 deletions src/test/py/bazel/bazel_external_repository_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import http.server
import os
import socketserver
import threading
import unittest
from six.moves import SimpleHTTPServer
from six.moves import socketserver

from src.test.py.bazel import test_base


Expand All @@ -34,7 +35,7 @@ def StartHttpServer(self):
"""Runs a simple http server to serve files under current directory."""
# Port 0 means to select an arbitrary unused port
host, port = 'localhost', 0
http_handler = SimpleHTTPServer.SimpleHTTPRequestHandler
http_handler = http.server.SimpleHTTPRequestHandler
server = ThreadedTCPServer((host, port), http_handler)
server_thread = threading.Thread(target=server.serve_forever)
server_thread.daemon = True
Expand Down

0 comments on commit 11cf743

Please sign in to comment.