Commit 10f08b35 authored by Denis Bilenko's avatar Denis Bilenko

test_ssl.py: use urllib.request/parse instead of urllib2/urlparse; use...

test_ssl.py: use urllib.request/parse instead of urllib2/urlparse; use http.server instead of HTTPServer
parent e4a2469b
...@@ -11,12 +11,25 @@ import gc ...@@ -11,12 +11,25 @@ import gc
import os import os
import errno import errno
import pprint import pprint
import urllib, urlparse
try:
from urllib import request as urllib
except:
import urllib
try:
import urlparse
except ImportError:
from urllib import parse as urlparse
import traceback import traceback
import weakref import weakref
from BaseHTTPServer import HTTPServer try:
from SimpleHTTPServer import SimpleHTTPRequestHandler from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
except ImportError:
from http.server import HTTPServer, SimpleHTTPRequestHandler
try: try:
bytearray bytearray
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment