AsyncScheduler: remove useless __slots__
authorZac Medico <zmedico@gentoo.org>
Sat, 6 Oct 2012 01:54:16 +0000 (18:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 6 Oct 2012 01:54:16 +0000 (18:54 -0700)
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
pym/portage/util/_async/TaskScheduler.py

index f6285b701651c8aa96c2b9a6a190bfb668c6df91..0648220b62d71ccfd3b582ddc096c366d403148e 100644 (file)
@@ -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)
index b0ec7af091c70ff06bea01adf4f0c156a3000318..35b3875a4218cb7ebfda9f8aaf0e2d254533347f 100644 (file)
@@ -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