Re: [PATCH] Drop unused RoundRobinScheduler



Hi Kai,

find the patch attached.

Best wishes,
 Christoph


2014-07-30 0:10 GMT+02:00 Kai Willadsen <kai willadsen gmail com>:


On Jul 25, 2014 8:26 AM, "Christoph Brill" <egore911 gmail com> wrote:
>
> ---
>  meld/task.py | 10 ----------
>  1 file changed, 10 deletions(-)
>
> diff --git a/meld/task.py b/meld/task.py
> index 75212ae..99e58d7 100644
> --- a/meld/task.py
> +++ b/meld/task.py
> @@ -141,16 +141,6 @@ class FifoScheduler(SchedulerBase):
>              raise StopIteration
>
>
> -class RoundRobinScheduler(SchedulerBase):
> -    """Scheduler repeatedly calling tasks in turn"""
> -
> -    def get_current_task(self):
> -        try:
> -            self.tasks.append(self.tasks.pop(0))
> -            return self.tasks[0]
> -        except IndexError:
> -            raise StopIteration
> -
>
>  if __name__ == "__main__":
>      import time

Looks good to me (format comments as with your other email).

Cheers,
Kai


Attachment: Drop-unused-RoundRobinScheduler.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]