projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb526c
)
Generate string properly in libbe.util.subproc.CommandError
author
W. Trevor King
<wking@drexel.edu>
Tue, 19 Jan 2010 13:48:33 +0000
(08:48 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Tue, 19 Jan 2010 13:48:33 +0000
(08:48 -0500)
libbe/util/subproc.py
patch
|
blob
|
history
diff --git
a/libbe/util/subproc.py
b/libbe/util/subproc.py
index 6ca1e808aa252972bcc2a58d02de6d3eeb21b66e..b02b8e884ba320d70f338f7f6806c032afa0b430 100644
(file)
--- a/
libbe/util/subproc.py
+++ b/
libbe/util/subproc.py
@@
-36,7
+36,7
@@
if _POSIX == True:
class CommandError(Exception):
def __init__(self, command, status, stdout=None, stderr=None):
strerror = ['Command failed (%d):\n %s\n' % (status, stderr),
- 'while executing\n %s' %
command
]
+ 'while executing\n %s' %
str(command)
]
Exception.__init__(self, '\n'.join(strerror))
self.command = command
self.status = status