SocketServer was renamed to socketserver in Py3, this patch
create a samba.compat.SocketServer which can be used in py2 or
py3
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
from urllib.parse import urljoin as urllib_join
from urllib.request import urlopen as urllib_urlopen
from functools import cmp_to_key as cmp_to_key_fn
+ import socketserver as SocketServer
# compat types
integer_types = int,
from urllib import quote as urllib_quote
from urllib import urlopen as urllib_urlopen
from urlparse import urljoin as urllib_join
+ import SocketServer as SocketServer
# compat types
integer_types = (int, long)