INNER CODE UNIT · Python
cmdloop
probcomp/bayeslite · shell/src/core.py:95
def cmdloop(self, *args, **kwargs):
version = bayeslite.__version__
self.stdout.write('Welcome to the Bayeslite %s shell.\n' % (version,))
self.stdout.write('Type `.help\' for help.\n')
while True:
try:
cmd.Cmd.cmdloop(self, *args, **kwargs)
except KeyboardInterrupt:
self.stdout.write('^C\n')
continue
else:
break
def default(self, line):
# XXX What is this idiocy? End-of-input is reported the same
# as the line with characters `E', `O', `F'.
if line == 'EOF':
self.stdout.write('\nMoriturus te querio.\n')