summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-17 22:58:08 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-17 22:58:08 +0000
commit6e8d3a973f2910790b499e3cb37b451c5cac99dc (patch)
treef171300909aa4fcc577d59354526bbf80c3f064d
parent4d98e282d216891a8526884e47e223d3ef26b8f3 (diff)
downloadportage-6e8d3a973f2910790b499e3cb37b451c5cac99dc.tar.gz
portage-6e8d3a973f2910790b499e3cb37b451c5cac99dc.tar.bz2
portage-6e8d3a973f2910790b499e3cb37b451c5cac99dc.zip
Use elif where appropriate. Thanks to ferringb.
svn path=/main/trunk/; revision=5691
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 6891a42ea..f64e26ae5 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2177,7 +2177,7 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, **keyw
fd_pipes = keywords.get("fd_pipes")
if fd_pipes is None:
fd_pipes = {0:0, 1:1, 2:2}
- if 1 not in fd_pipes or 2 not in fd_pipes:
+ elif 1 not in fd_pipes or 2 not in fd_pipes:
raise ValueError(fd_pipes)
pr, pw = os.pipe()
mypids.extend(portage_exec.spawn(('tee', '-i', '-a', logfile),