diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-12-23 13:36:59 -0500 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-12-23 13:36:59 -0500 |
commit | e3dfbbc86acd292c9812cfd51d1fdc8906d40dac (patch) | |
tree | 1f2639e4ffe9689d6f469f912338a9dc773cc8f5 | |
parent | 879cba1745edd852302346e5bb405b8bc3c10d20 (diff) | |
download | bugseverywhere-e3dfbbc86acd292c9812cfd51d1fdc8906d40dac.tar.gz |
Fixed subprocess invocation for bzr
-rw-r--r-- | libbe/arch.py | 1 | ||||
-rw-r--r-- | libbe/bzr.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libbe/arch.py b/libbe/arch.py index 28d64d4..7edba37 100644 --- a/libbe/arch.py +++ b/libbe/arch.py @@ -32,6 +32,7 @@ def invoke(args): return status, output, error raise Exception("Command failed: %s" % error) + def invoke_client(*args, **kwargs): cl_args = [client] cl_args.extend(args) diff --git a/libbe/bzr.py b/libbe/bzr.py index bc4d98d..80b9e9b 100644 --- a/libbe/bzr.py +++ b/libbe/bzr.py @@ -14,12 +14,12 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -from subprocess import Popen +from subprocess import Popen, PIPE import os import config def invoke(args): - q=Popen(args) + q = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE) output = q.stdout.read() error = q.stderr.read() status = q.wait() |