@state
def top(me, event):
    "This is the default state handler.\n        This handler ignores all signals except\n        the POSIX-like events, SIGINT/SIGTERM.\n        Handling SIGINT/SIGTERM here causes the Exit path\n        to be executed from the application's active state\n        to top/here.\n        The application may put something useful\n        or nothing at all in the Exit path.\n        "
    if (Event.SIGINT == event):
        return Hsm.RET_HANDLED
    if (Event.SIGTERM == event):
        return Hsm.RET_HANDLED
    return Hsm.RET_IGNORED
This is the default state handler.
This handler ignores all signals except
the POSIX-like events, SIGINT/SIGTERM.
Handling SIGINT/SIGTERM here causes the Exit path
to be executed from the application's active state
to top/here.
The application may put something useful
or nothing at all in the Exit path.
@state
def top(me, event):
    "This is the default state handler.\n        This handler ignores all signals except\n        the POSIX-like events, SIGINT/SIGTERM.\n        Handling SIGINT/SIGTERM here causes the Exit path\n        to be executed from the application's active state\n        to top/here.\n        The application may put something useful\n        or nothing at all in the Exit path.\n        "
    if (Event.SIGINT == event):
        return Hsm.RET_HANDLED
    if (Event.SIGTERM == event):
        return Hsm.RET_HANDLED
    return Hsm.RET_IGNORED