diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-02-09 17:27:13 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-02-09 17:27:13 -0800 |
commit | c85b1d7149f09e64b5ed4f5e45742b6e5a9df38b (patch) | |
tree | 89acfdef9a210a4a179eff28806cb3094362c0e1 /pym/_emerge/EbuildIpcDaemon.py | |
parent | 963fa653fc0d7aff25bb4756df8398b88193547c (diff) | |
download | portage-c85b1d7149f09e64b5ed4f5e45742b6e5a9df38b.tar.gz portage-c85b1d7149f09e64b5ed4f5e45742b6e5a9df38b.tar.bz2 portage-c85b1d7149f09e64b5ed4f5e45742b6e5a9df38b.zip |
Use IO_* constants where appropriate.
Diffstat (limited to 'pym/_emerge/EbuildIpcDaemon.py')
-rw-r--r-- | pym/_emerge/EbuildIpcDaemon.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/_emerge/EbuildIpcDaemon.py b/pym/_emerge/EbuildIpcDaemon.py index 6a320cb07..5795bfbdc 100644 --- a/pym/_emerge/EbuildIpcDaemon.py +++ b/pym/_emerge/EbuildIpcDaemon.py @@ -1,4 +1,4 @@ -# Copyright 2010-2011 Gentoo Foundation +# Copyright 2010-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import errno @@ -8,7 +8,6 @@ from portage import os from portage.localization import _ from portage.util import writemsg_level from _emerge.FifoIpcDaemon import FifoIpcDaemon -from _emerge.PollConstants import PollConstants class EbuildIpcDaemon(FifoIpcDaemon): """ @@ -34,7 +33,7 @@ class EbuildIpcDaemon(FifoIpcDaemon): def _input_handler(self, fd, event): # Read the whole pickle in a single atomic read() call. data = None - if event & PollConstants.POLLIN: + if event & self.scheduler.IO_IN: # For maximum portability, use os.read() here since # array.fromfile() and file.read() are both known to # erroneously return an empty string from this |