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

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

src/c/r/critic-HEAD/src/background/maildelivery.py   critic(Download)
                    timeout = (30 - sleeptime) if self.__connection else self.run_maintenance()
 
                    self.debug("sleeping %d seconds" % timeout)
 
                    time.sleep(timeout)
 
                    if self.interrupted:
                        self.debug("sleep interrupted after %.2f seconds" % (time.time() - before))
                                                self.__credentials["password"])
 
                    self.debug("connected")
                    return
                except:
                    self.debug("failed to connect to SMTP server")
                seconds = min(60, 2 ** attempts)
 
                self.debug("sleeping %d seconds" % seconds)
 
                time.sleep(seconds)