Remove mod_wsgi test client's dependency on py3compat.

This commit is contained in:
A. Jesse Jiryu Davis 2014-04-24 14:58:09 -04:00
parent f524e723e4
commit 619924d05f

View File

@ -21,12 +21,18 @@ import time
from optparse import OptionParser
from bson.py3compat import PY3, thread
if PY3:
from urllib.request import urlopen
else:
try:
from urllib2 import urlopen
except ImportError:
# Python 3.
from urllib.request import urlopen
try:
import thread
except ImportError:
# Python 3.
import _thread as thread
def parse_args():