sb: PR 2184 - Fix the subprocess use on Python < 2.7.

This commit is contained in:
Chris Johns 2014-08-05 13:51:08 +10:00
parent 910081d515
commit 039381478b
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class command:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
raise CalledProcessError(retcode, cmd)
raise subprocess.CalledProcessError(retcode, cmd)
return output
subprocess.check_output = f

View File

@ -77,7 +77,7 @@ class command:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
raise CalledProcessError(retcode, cmd)
raise subprocess.CalledProcessError(retcode, cmd)
return output
subprocess.check_output = f