diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-10-05 18:54:16 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-10-05 18:54:16 -0700 |
commit | ed13db998ed501c710a5417e451aebed1eb24f6c (patch) | |
tree | b2365eb8a77a9bea04e4506d1d43cfdec923562a | |
parent | e4b64dd7dc7c2217055f110990b2496b71976681 (diff) | |
download | portage-ed13db998ed501c710a5417e451aebed1eb24f6c.tar.gz portage-ed13db998ed501c710a5417e451aebed1eb24f6c.tar.bz2 portage-ed13db998ed501c710a5417e451aebed1eb24f6c.zip |
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.
-rw-r--r-- | pym/portage/util/_async/AsyncScheduler.py | 4 | ||||
-rw-r--r-- | pym/portage/util/_async/TaskScheduler.py | 2 |
2 files changed, 0 insertions, 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 |