From 6e8d3a973f2910790b499e3cb37b451c5cac99dc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 17 Jan 2007 22:58:08 +0000 Subject: Use elif where appropriate. Thanks to ferringb. svn path=/main/trunk/; revision=5691 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') 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), -- cgit v1.2.3-1-g7c22