##// END OF EJS Templates
commandserver: prefer first-party selectors module from Python 3 to backport...
Augie Fackler -
r36958:b0ffcb54 default
parent child Browse files
Show More
@@ -16,8 +16,13 b' import socket'
16 16 import struct
17 17 import traceback
18 18
19 try:
20 import selectors
21 selectors.BaseSelector
22 except ImportError:
23 from .thirdparty import selectors2 as selectors
24
19 25 from .i18n import _
20 from .thirdparty import selectors2
21 26 from . import (
22 27 encoding,
23 28 error,
@@ -476,8 +481,8 b' class unixforkingservice(object):'
476 481 def _mainloop(self):
477 482 exiting = False
478 483 h = self._servicehandler
479 selector = selectors2.DefaultSelector()
480 selector.register(self._sock, selectors2.EVENT_READ)
484 selector = selectors.DefaultSelector()
485 selector.register(self._sock, selectors.EVENT_READ)
481 486 while True:
482 487 if not exiting and h.shouldexit():
483 488 # clients can no longer connect() to the domain socket, so
General Comments 0
You need to be logged in to leave comments. Login now