[asterisk-commits] mjordan: testsuite/asterisk/trunk r3190 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 19 10:09:29 CDT 2012


Author: mjordan
Date: Thu Apr 19 10:09:24 2012
New Revision: 3190

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3190
Log:
Don't capture stderr on stdout when getting Asterisk Version

If Asterisk dumps something to stderr, it isn't like we can do anything
with it anyway.  The version parsing isn't smart enough to look past
what it expects to get - which is simply the version information on
stdout.

Modified:
    asterisk/trunk/lib/python/asterisk/version.py

Modified: asterisk/trunk/lib/python/asterisk/version.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/version.py?view=diff&rev=3190&r1=3189&r2=3190
==============================================================================
--- asterisk/trunk/lib/python/asterisk/version.py (original)
+++ asterisk/trunk/lib/python/asterisk/version.py Thu Apr 19 10:09:24 2012
@@ -145,7 +145,7 @@
 
             try:
                 process = subprocess.Popen(cmd, stdout=subprocess.PIPE,
-                        stderr=subprocess.STDOUT)
+                        stderr=None)
                 version = process.stdout.read()
             except OSError as oe:
                 logger.error("OSError [%d]: %s" % (oe.errno, oe.strerror))




More information about the asterisk-commits mailing list