diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-05-05 14:09:55 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-05-05 14:09:55 +0100 |
commit | af9a357a6b13874ec6e1ccf30da00ef091a1d6d6 (patch) | |
tree | b8103c609d33056e7d6a7cb5538b5890d1c146b0 /pykolab/utils.py | |
parent | 62c419ed0ccac9faa4b3ce4afb7daaaaf43236c7 (diff) | |
download | pykolab-af9a357a6b13874ec6e1ccf30da00ef091a1d6d6.tar.gz |
Flush stderr and stdout when asking a question
Diffstat (limited to 'pykolab/utils.py')
-rw-r--r-- | pykolab/utils.py | 3 |
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: |