projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8ef600
)
Incorrect argument conversion in tools.process
author
Frederic Massart
<fred@moodle.com>
Fri, 26 Apr 2013 10:43:57 +0000
(18:43 +0800)
committer
Frederic Massart
<fred@moodle.com>
Fri, 26 Apr 2013 10:43:57 +0000
(18:43 +0800)
lib/tools.py
patch
|
blob
|
history
diff --git
a/lib/tools.py
b/lib/tools.py
index
1896cf2
..
d194abd
100644
(file)
--- a/
lib/tools.py
+++ b/
lib/tools.py
@@
-103,7
+103,7
@@
def parseBranch(branch, pattern):
def process(cmd, cwd=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE):
- if type(cmd) !=
'list'
:
+ if type(cmd) !=
list
:
cmd = shlex.split(str(cmd))
proc = subprocess.Popen(cmd, cwd=cwd, stdout=stdout, stderr=stderr)
(out, err) = proc.communicate()