def _in_keepalive_mode(): if keepalive: return keepalive.enabled() return False
def _in_keepalive_mode(): return keepalive and keepalive.enabled()