def xonsh_exit(args, stdin=None): """Sends signal to exit shell.""" if not clean_jobs(): # Do not exit if jobs not cleaned up return None, None builtins.__xonsh_exit__ = True print() # gimme a newline return None, None
def exit(args, stdin=None): # pylint:disable=redefined-builtin,W0622 """Sends signal to exit shell.""" if not clean_jobs(): # Do not exit if jobs not cleaned up return None, None builtins.__xonsh_exit__ = True print() # gimme a newline return None, None