summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-08-05 13:51:08 +1000
committerChris Johns <chrisj@rtems.org>2014-08-05 13:51:08 +1000
commit039381478b72f2b577ddb804f51ed5538c9a3b76 (patch)
tree145f1e7fca1a7620baf381a57fb54133a0d712ff
parentsb: Fix using hashlib's algorithms on python earlier than 2.7. (diff)
downloadrtems-source-builder-039381478b72f2b577ddb804f51ed5538c9a3b76.tar.bz2
sb: PR 2184 - Fix the subprocess use on Python < 2.7.
-rw-r--r--source-builder/sb/bootstrap.py2
-rw-r--r--source-builder/sb/rtemsconfig.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/source-builder/sb/bootstrap.py b/source-builder/sb/bootstrap.py
index 589a2c3..712741c 100644
--- a/source-builder/sb/bootstrap.py
+++ b/source-builder/sb/bootstrap.py
@@ -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
diff --git a/source-builder/sb/rtemsconfig.py b/source-builder/sb/rtemsconfig.py
index 4eaee40..dcd1394 100644
--- a/source-builder/sb/rtemsconfig.py
+++ b/source-builder/sb/rtemsconfig.py
@@ -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