[meld] Capture stderr so we don't get console junk if mtn is not installed



commit e9e9dcf27052d212a0bc7ce5d8bc84436ab734b4
Author: Stephen Kennedy <stevek gnome org>
Date:   Fri Apr 17 23:30:48 2009 +0100

    Capture stderr so we don't get console junk if mtn is not installed
---
 vc/monotone.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/vc/monotone.py b/vc/monotone.py
index 783b464..68cab1f 100644
--- a/vc/monotone.py
+++ b/vc/monotone.py
@@ -43,7 +43,8 @@ class Vc(_vc.Vc):
             # for monotone >= 0.26
             self.VC_DIR = "_MTN"
             self.CMD = "mtn"
-            self.interface_version = float(os.popen(self.CMD + " automate interface_version").read())
+            cstdin, cstdout, cstderr = os.popen3(self.CMD + " automate interface_version")
+            self.interface_version = float(cstdout.read())
             if self.interface_version > 9.0:
                 print "WARNING: Unsupported interface version (please report any problems to the meld mailing list)"
         except ValueError:



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