From c85b1d7149f09e64b5ed4f5e45742b6e5a9df38b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 9 Feb 2012 17:27:13 -0800 Subject: Use IO_* constants where appropriate. --- pym/_emerge/EbuildIpcDaemon.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pym/_emerge/EbuildIpcDaemon.py') 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 -- cgit v1.2.3-1-g7c22