156
192
self.stdout = stdout or sys.stdout
157
193
self.stderr = stderr or sys.stderr
195
_accepted_boolean_strings = dict(y=True, n=False, yes=True, no=False)
159
197
def get_boolean(self, prompt):
162
199
self.prompt(prompt + "? [y/n]: ")
163
200
line = self.stdin.readline()
169
206
def get_non_echoed_password(self):
170
207
isatty = getattr(self.stdin, 'isatty', None)