Use elif where appropriate. Thanks to ferringb.
authorZac Medico <zmedico@gentoo.org>
Wed, 17 Jan 2007 22:58:08 +0000 (22:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 17 Jan 2007 22:58:08 +0000 (22:58 -0000)
svn path=/main/trunk/; revision=5691

pym/portage.py

index 6891a42ea258a89099b2ce04c294591df028ab3e..f64e26ae5eb7877ddf2d84ec5ce4c172c9a32a84 100644 (file)
@@ -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),