From d365eb3a6187ffcfccd1e68e637698d52e02070b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 1 Dec 2011 12:34:52 -0800 Subject: [PATCH] MergeProcess: check if _elog_reader_fd is None It seems saner to check for None, given that _elog_reader_fd is an int, even though it will probably never be zero. --- pym/portage/dbapi/_MergeProcess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/_MergeProcess.py b/pym/portage/dbapi/_MergeProcess.py index c9b628865..df501be38 100644 --- a/pym/portage/dbapi/_MergeProcess.py +++ b/pym/portage/dbapi/_MergeProcess.py @@ -212,7 +212,7 @@ class MergeProcess(SpawnProcess): if self._elog_reg_id is not None: self.scheduler.unregister(self._elog_reg_id) self._elog_reg_id = None - if self._elog_reader_fd: + if self._elog_reader_fd is not None: os.close(self._elog_reader_fd) self._elog_reader_fd = None if self._elog_keys is not None: -- 2.26.2