From ed13db998ed501c710a5417e451aebed1eb24f6c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 5 Oct 2012 18:54:16 -0700 Subject: AsyncScheduler: remove useless __slots__ It's not allowed for AsyncScheduler to inherit from two classes that define __slots__, so it useless to define __slots__ for AsyncScheduler and subclasses. --- pym/portage/util/_async/AsyncScheduler.py | 4 ---- pym/portage/util/_async/TaskScheduler.py | 2 -- 2 files changed, 6 deletions(-) diff --git a/pym/portage/util/_async/AsyncScheduler.py b/pym/portage/util/_async/AsyncScheduler.py index f6285b701..0648220b6 100644 --- a/pym/portage/util/_async/AsyncScheduler.py +++ b/pym/portage/util/_async/AsyncScheduler.py @@ -7,10 +7,6 @@ from _emerge.PollScheduler import PollScheduler class AsyncScheduler(AsynchronousTask, PollScheduler): - __slots__ = ('_error_count', '_loadavg_check_id', - '_max_jobs', '_max_load', - '_remaining_tasks', '_running_tasks', '_term_check_id') - def __init__(self, max_jobs=None, max_load=None, **kwargs): AsynchronousTask.__init__(self) PollScheduler.__init__(self, **kwargs) diff --git a/pym/portage/util/_async/TaskScheduler.py b/pym/portage/util/_async/TaskScheduler.py index b0ec7af09..35b3875a4 100644 --- a/pym/portage/util/_async/TaskScheduler.py +++ b/pym/portage/util/_async/TaskScheduler.py @@ -5,8 +5,6 @@ from .AsyncScheduler import AsyncScheduler class TaskScheduler(AsyncScheduler): - __slots__ = ('_task_iter',) - """ A simple way to handle scheduling of AbstractPollTask instances. Simply pass a task iterator into the constructor and call start(). Use the -- cgit v1.2.3-1-g7c22