diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-10-05 21:31:56 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-10-05 21:31:56 -0700 |
commit | 14230dd467c4f0136cb99e83f2d610de166b772b (patch) | |
tree | cbc1f254b884fa8b006436a2af3c78a8426facb7 /pym/_emerge/AbstractPollTask.py | |
parent | 637bb91a9439d4bb7f391fe6e804b64592812fdd (diff) | |
download | portage-14230dd467c4f0136cb99e83f2d610de166b772b.tar.gz portage-14230dd467c4f0136cb99e83f2d610de166b772b.tar.bz2 portage-14230dd467c4f0136cb99e83f2d610de166b772b.zip |
PollScheduler: remove register/unregister methods
These methods were aliases for the EventLoop io_add_watch and
source_remove methods. Migrating to the EventLoop method names allows
an EventLoop instance to substitute for a PollScheduler inside
subclasses of AbstractPollTask.
Diffstat (limited to 'pym/_emerge/AbstractPollTask.py')
-rw-r--r-- | pym/_emerge/AbstractPollTask.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/AbstractPollTask.py b/pym/_emerge/AbstractPollTask.py index 2c8470925..3f6dd6cef 100644 --- a/pym/_emerge/AbstractPollTask.py +++ b/pym/_emerge/AbstractPollTask.py @@ -151,4 +151,4 @@ class AbstractPollTask(AsynchronousTask): while self._registered and not timeout_cb.timed_out: self.scheduler.iteration() finally: - self.scheduler.unregister(timeout_cb.timeout_id) + self.scheduler.source_remove(timeout_cb.timeout_id) |