summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2009-08-01 00:10:58 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2009-08-01 00:10:58 +0200
commitc9996a3223803ed28c2484eac78cca243be362d2 (patch)
tree87d8b97a013a119888198c6ec91d2b0ad4821474
parent3c12ec55d34392fab45246f55a76fa03b2692b28 (diff)
downloadlogilab-common-c9996a3223803ed28c2484eac78cca243be362d2.tar.gz
R [shellutils] add singleton RawInput
-rw-r--r--shellutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/shellutils.py b/shellutils.py
index 76998e6..93f8f8c 100644
--- a/shellutils.py
+++ b/shellutils.py
@@ -327,3 +327,5 @@ class RawInput(object):
default = default_is_yes and 'y' or 'n'
answer = self.ask(question, ('y','n'), default)
return answer == 'y'
+
+ASK = RawInput()