From 6947cab38a20986e71b170d345682be9657cda1b Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Mon, 10 Oct 2011 19:16:01 -0500 Subject: Remove call to subprocess.check_output This function is new in Python 2.7 and we already have a function that returns command ouput. Just reuse runcmd to get the version. --- couchjs/c_src/SConscript | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'couchjs') diff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript index a3e0cc07..a5f8b66b 100644 --- a/couchjs/c_src/SConscript +++ b/couchjs/c_src/SConscript @@ -13,7 +13,6 @@ # the License. import os import commands -import subprocess def require_lib(name): if not conf.CheckLib(name): @@ -89,7 +88,7 @@ if not env.GetOption('clean'): ## Define properties for -h / -V - vsn = subprocess.check_output(["git","describe","--match","1.*"]) + (_, vsn) = runcmd("git describe --match 1.*") conf.Define("PACKAGE_STRING", '"%s"' % vsn.rstrip()) conf.Define("PACKAGE_NAME", '"Cloudant BigCouch"') conf.Define("PACKAGE_BUGREPORT", '"https://github.com/cloudant/bigcouch/issues"') -- cgit v1.2.3