def connectUNIX(self, address, factory, timeout=30, checkPID=0): """@see: twisted.internet.interfaces.IReactorUNIX.connectUNIX """ assert unixEnabled, "UNIX support is not present" c = unix.Connector(address, factory, timeout, self, checkPID) c.connect() return c
def connectUNIX(self, address, factory, timeout=30, checkPID=0): assert unixEnabled, "UNIX support is not present" # Move this import back up to main level when twisted.internet.unix is # ported to Python 3: from twisted.internet import unix c = unix.Connector(address, factory, timeout, self, checkPID) c.connect() return c
def connectUNIX(self, address, factory, timeout=30, checkPID=0): '''should return IConnector''' r = unix.Connector( address, factory, timeout, self, checkPID, ) def blam(*args): print("BLAAAAAM", args) r.connect = blam return r
def connectUNIX(self, address, factory, timeout=30, checkPID=0): assert unixEnabled, "UNIX support is not present" c = unix.Connector(address, factory, timeout, self, checkPID) c.connect() return c