This cost around 10ms for every Python script, and was only used in one
test.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
return (x > y) - (x < y)
# compat functions
from functools import cmp_to_key as cmp_to_key_fn
- import socketserver as SocketServer
# compat types
integer_types = int,
return K
else:
from functools import cmp_to_key as cmp_to_key_fn
- # compat functions
- import SocketServer as SocketServer
# compat types
integer_types = (int, long)
#
# Based on the EchoServer example from python docs
from __future__ import print_function
-from samba.compat import SocketServer
+import socketserver as SocketServer
import sys
from threading import Timer
from samba.dcerpc import dns