Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/d/i/digsby-HEAD/digsby/src/common/proxysockets.py   digsby(Download)
    def _httpfinish(self, data):
        self.pop_handler()
        statusline = data.splitlines()[0].split(" ",2)
        if statusline[0] not in ("HTTP/1.0","HTTP/1.1"):
            log.info("ProxySocket._httpfinish: Bad data from server, disconnecting: (%r)", data)
    def _socks4finish(self, data):
        from struct import unpack
        self.pop_handler()
        log.info('ProxySocket._negotiatesocks4: received response')
 
            def wrapper(data):
                self.pop_handler()
                return f(data)
            return wrapper