summaryrefslogtreecommitdiff
path: root/pykolab/utils.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-05 13:09:55 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-05 13:09:55 (GMT)
commitaf9a357a6b13874ec6e1ccf30da00ef091a1d6d6 (patch)
treeb8103c609d33056e7d6a7cb5538b5890d1c146b0 /pykolab/utils.py
parent62c419ed0ccac9faa4b3ce4afb7daaaaf43236c7 (diff)
downloadpykolab-af9a357a6b13874ec6e1ccf30da00ef091a1d6d6.tar.gz
Flush stderr and stdout when asking a question
Diffstat (limited to 'pykolab/utils.py')
-rw-r--r--pykolab/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/utils.py b/pykolab/utils.py
index e3e2e7b..63aacb7 100644
--- a/pykolab/utils.py
+++ b/pykolab/utils.py
@@ -46,6 +46,9 @@ def ask_question(question, default="", password=False):
else:
answer = raw_input("%s [%s]: " % (question, default))
+ sys.stderr.flush()
+ sys.stdout.flush()
+
if answer == "":
return default
else: