[meld] Silence stderr from the new vc.call()



commit 0e6476ac1154b50e88c302417929fc628bbfcdca
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Aug 22 08:38:06 2010 +1000

    Silence stderr from the new vc.call()
    
    Without this, our checks for repository validity cause some version
    control systems to complain to standard error, which looks a little
    ugly.

 meld/vc/_vc.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/meld/vc/_vc.py b/meld/vc/_vc.py
index 621a527..16accf1 100644
--- a/meld/vc/_vc.py
+++ b/meld/vc/_vc.py
@@ -210,4 +210,5 @@ def popen(cmd, cwd=None):
 
 # Return the return value of a given command
 def call(cmd, cwd=None):
-    return subprocess.call(cmd, cwd=cwd, stdout=subprocess.PIPE)
+    return subprocess.call(cmd, cwd=cwd, stdout=subprocess.PIPE,
+                           stderr=subprocess.STDOUT)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]