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