def sleep(self, timeout):
        if timeout == 0:
            return

        step = 0.001

        for r in repeat(step, int(float(timeout) / step)):
            if not self.stoprequest.isSet():
                time.sleep(r)
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/task/fake.py/FakeThread.sleep/original