##// END OF EJS Templates
Fix import of socketserver on Python 3....
Thomas Kluyver -
Show More
@@ -29,16 +29,19 b' from __future__ import print_function'
29 29
30 30 import logging
31 31 import select
32 import SocketServer
32 try: # Python 3
33 import socketserver
34 except ImportError: # Python 2
35 import SocketServer as socketserver
33 36
34 37 logger = logging.getLogger('ssh')
35 38
36 class ForwardServer (SocketServer.ThreadingTCPServer):
39 class ForwardServer (socketserver.ThreadingTCPServer):
37 40 daemon_threads = True
38 41 allow_reuse_address = True
39 42
40 43
41 class Handler (SocketServer.BaseRequestHandler):
44 class Handler (socketserver.BaseRequestHandler):
42 45
43 46 def handle(self):
44 47 try:
General Comments 0
You need to be logged in to leave comments. Login now