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

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

src/p/i/piHAcontrollers-0.8.5/piHAcontrollers/tsduo1.py   piHAcontrollers(Download)
        while n < 5:
            n += 1
            res = self.read(100)
            if not res:
                time.sleep(0.1)
        logger.debug("Nb caracters write to controller %s",repr(nb))
        time.sleep(1)
        res = self.read(15)
        if not res:
            logger.debug("No response from controller")
        LEVT = "+W".encode('latin1')
        REVT = ";\r\n".encode('latin1')
        data = self.read(maxlen)
        if not data :
            return None
        events.append(first)
        if n > 1:
            next = self.read(10 * maxlen)
            if next:
                n1 = next.count(LEVT)

src/p/i/pimucHA-0.8.5a/piHAcontrollers/tsduo1.py   pimucHA(Download)
        while n < 5:
            n += 1
            res = self.read(100)
            if not res:
                time.sleep(0.1)
        logger.debug("Nb caracters write to controller %s",repr(nb))
        time.sleep(1)
        res = self.read(15)
        if not res:
            logger.debug("No response from controller")
        LEVT = "+W".encode('latin1')
        REVT = ";\r\n".encode('latin1')
        data = self.read(maxlen)
        if not data :
            return None
        events.append(first)
        if n > 1:
            next = self.read(10 * maxlen)
            if next:
                n1 = next.count(LEVT)