INNER CODE UNIT · Python
do_print
probcomp/bayeslite · shell/src/core.py:267
do_print = lambda *s: None
else:
do_print = self.stdout.write
if cmdname in self._cmds:
affirmative = ['yes', 'y']
negative = ['no', 'n']
if not autorehook:
self.stdout.write("Do you want to rehook the %s command?\n"
% (cmdname,))
yesno = raw_input('y/n? ').lower()
while yesno not in affirmative+negative:
self.stdout.write("Invalid response to yes/no question.\n")
yesno = raw_input('y/n? ').lower()
else:
yesno = 'yes'
if yesno in affirmative: