Move the "registered" attribute to the SubProcess class too.
authorZac Medico <zmedico@gentoo.org>
Mon, 7 Jul 2008 12:04:32 +0000 (12:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 7 Jul 2008 12:04:32 +0000 (12:04 -0000)
svn path=/main/trunk/; revision=10971

pym/_emerge/__init__.py

index 4c63a63797fdb927b1f4a6e3229cdbd7584e82cd..8649912aea7bc7b7c90a1a75c6189c01c7336ce3 100644 (file)
@@ -1653,7 +1653,7 @@ class TaskSequence(CompositeTask):
                        self.wait()
 
 class SubProcess(AsynchronousTask):
-       __slots__ = ("pid", "reg_id", "scheduler")
+       __slots__ = ("pid", "registered", "reg_id", "scheduler")
 
        # A file descriptor is required for the scheduler to monitor changes from
        # inside a poll() loop. When logging is not enabled, create a pipe just to
@@ -1712,7 +1712,7 @@ class SpawnProcess(SubProcess):
                "uid", "gid", "groups", "umask", "logfile",
                "path_lookup", "pre_exec")
 
-       __slots__ = ("args", "files", "registered") + \
+       __slots__ = ("args", "files") + \
                _spawn_kwarg_names
 
        _file_names = ("process", "out")
@@ -2161,7 +2161,7 @@ class EbuildPhase(SubProcess):
 
        __slots__ = ("fd_pipes", "phase", "pkg",
                "settings", "tree",
-               "files", "registered")
+               "files")
 
        _file_names = ("log", "stdout", "ebuild")
        _files_dict = slot_dict_class(_file_names, prefix="")