projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
809969b
)
Flushes the output buffer after each echo
author
Frederic Massart
<fred@moodle.com>
Mon, 6 Aug 2012 07:55:49 +0000
(15:55 +0800)
committer
Frederic Massart
<fred@moodle.com>
Mon, 6 Aug 2012 07:55:49 +0000
(15:55 +0800)
lib/tools.py
patch
|
blob
|
history
diff --git
a/lib/tools.py
b/lib/tools.py
index
2db224b
..
7c3ede4
100644
(file)
--- a/
lib/tools.py
+++ b/
lib/tools.py
@@
-3,6
+3,7
@@
import shlex
import subprocess
+import sys
def yesOrNo(q):
answers = ['y', 'n']
@@
-15,6
+16,7
@@
def yesOrNo(q):
def debug(str):
print str
+ sys.stdout.flush()
def process(cmd, cwd=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE):
if type(cmd) != 'list':