From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 626EF138010 for ; Sat, 6 Oct 2012 01:54:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5EBBEE0205; Sat, 6 Oct 2012 01:54:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DE5ACE0205 for ; Sat, 6 Oct 2012 01:54:42 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1CA6333D764 for ; Sat, 6 Oct 2012 01:54:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D24B0E5436 for ; Sat, 6 Oct 2012 01:54:39 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1349488456.ed13db998ed501c710a5417e451aebed1eb24f6c.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/util/_async/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/util/_async/AsyncScheduler.py pym/portage/util/_async/TaskScheduler.py X-VCS-Directories: pym/portage/util/_async/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: ed13db998ed501c710a5417e451aebed1eb24f6c X-VCS-Branch: master Date: Sat, 6 Oct 2012 01:54:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: df871dd6-6c09-4a01-94e2-cf70dc9b0c0b X-Archives-Hash: 1e8a575e4882185217f2272ea928f51a commit: ed13db998ed501c710a5417e451aebed1eb24f6c Author: Zac Medico gentoo org> AuthorDate: Sat Oct 6 01:54:16 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Oct 6 01:54:16 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ed13db99 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, 0 insertions(+), 6 deletions(-) diff --git a/pym/portage/util/_async/AsyncScheduler.py b/pym/portage/util/_async/AsyncScheduler.py index f6285b7..0648220 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 b0ec7af..35b3875 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