Remove mod_wsgi test client's dependency on py3compat.
This commit is contained in:
parent
f524e723e4
commit
619924d05f
@ -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():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user