def __init__(self, *args, **kw): self.user = kw.pop("user", None) self.password = kw.pop("password", None) RequesterBase.__init__(self, *args, **kw) self.remoteHost, self.remotePort = None, None self._responseQueue = list()
def buildProtocol(self, addr): protocol = RequesterBase.buildProtocol(self, addr) protocol.remoteHost = self.remoteHost protocol.remotePort = self.remotePort return protocol