Esempio n. 1
0
 def create_transport(self):
     transport = _SelectorTransport(self.loop, self.sock, self.protocol,
                                    None)
     self.addCleanup(close_transport, transport)
     return transport
Esempio n. 2
0
 def create_transport(self):
     transport = _SelectorTransport(self.loop, self.sock, self.protocol,
                                    None)
     self.addCleanup(close_transport, transport)
     return transport