diff options
Diffstat (limited to 'pykolab/utils.py')
-rw-r--r-- | pykolab/utils.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pykolab/utils.py b/pykolab/utils.py index c40b252..0ba203a 100644 --- a/pykolab/utils.py +++ b/pykolab/utils.py @@ -35,11 +35,6 @@ def ask_question(question, default="", password=False): Usage: pykolab.utils.ask_question("What is the server?", default="localhost") """ - - # Remove any buffering that may exist - sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0) - sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) - if password: if default == "": answer = getpass.getpass("%s: " % (question)) @@ -62,11 +57,6 @@ def ask_confirmation(question, default="y", all_inclusive_no=True): and a "yes" or "no" parsing that can either require an explicit, full "yes" or "no", or take the default or any YyNn answer. """ - - # Remove any buffering that may exist - sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0) - sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) - if default in [ "y", "Y" ]: default_answer = True default_no = "n" |