From b28e6a84acacaeee45e39b598578099e7a672349 Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Tue, 19 Jul 2016 14:46:16 +0300 Subject: [PATCH] Remove prompt_yes_or_no This function is not used anywhere in the code. --- cheat/utils.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cheat/utils.py b/cheat/utils.py index 28ba2eb..4932314 100644 --- a/cheat/utils.py +++ b/cheat/utils.py @@ -46,20 +46,6 @@ def editor(): return os.environ['EDITOR'] -def prompt_yes_or_no(question): - """ Prompts the user with a yes-or-no question """ - # Support Python 2 and 3 input - # Default to Python 2's input() - get_input = raw_input - - # If this is Python 3, use input() - if sys.version_info[:2] >= (3, 0): - get_input = input - - print(question) - return get_input('[y/n] ') == 'y' - - def warn(message): """ Prints a message to stderr """ print((message), file=sys.stderr)