INNER CODE UNIT · Python
default
neuml/codequestion · src/python/codequestion/console.py:58
def default(self, line):
"""
Default event loop.
Args:
line: command line
"""
# pylint: disable=W0703
try:
command = line.lower()
if command.startswith(".limit"):
command = self.split(line)
self.limit = int(command[1])
elif command.startswith(".path") and self.path:
command = self.split(line)
start, end = command[1].split()
self.path(int(start), int(end))