PipeLogger/Reader: remove redundant isAlive()
authorZac Medico <zmedico@gentoo.org>
Fri, 19 Oct 2012 01:23:02 +0000 (18:23 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 19 Oct 2012 01:23:02 +0000 (18:23 -0700)
Parent class AbstractPollTask has equivalent implementation.

pym/_emerge/PipeReader.py
pym/portage/util/_async/PipeLogger.py

index 3eb9d36df1a7dca6488399fbb414419d6e4817d2..fcdefb4825747b7b25c4bd7a184b397fb07ae1c1 100644 (file)
@@ -33,9 +33,6 @@ class PipeReader(AbstractPollTask):
                                self._registered_events, output_handler))
                self._registered = True
 
-       def isAlive(self):
-               return self._registered
-
        def _cancel(self):
                if self.returncode is None:
                        self.returncode = 1
index dbdd56f2a767c4c9ef40fdaef929d989a6610981..0905e47f9dd5e42f819a472dd038f52ae09267b2 100644 (file)
@@ -45,9 +45,6 @@ class PipeLogger(AbstractPollTask):
                        self._registered_events, self._output_handler)
                self._registered = True
 
-       def isAlive(self):
-               return self._registered
-
        def _cancel(self):
                self._unregister()
                if self.returncode is None: