aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/util/httpd.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/util/httpd.py')
-rw-r--r--sources/pyside2/tests/util/httpd.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/sources/pyside2/tests/util/httpd.py b/sources/pyside2/tests/util/httpd.py
index 41ac126fb..82bec337d 100644
--- a/sources/pyside2/tests/util/httpd.py
+++ b/sources/pyside2/tests/util/httpd.py
@@ -26,23 +26,17 @@
##
#############################################################################
+import http.server as BaseHTTPServer
import os
import random
import select
import sys
+import socketserver as SocketServer
import tempfile
import threading
sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
-import py3kcompat as py3k
-
-if py3k.IS_PY3K:
- import socketserver as SocketServer
- import http.server as BaseHTTPServer
-else:
- import SocketServer
- import BaseHTTPServer
class TestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
DATA = "PySide Server"