INNER CODE UNIT · Python

_echo_aborted

pallets/click · src/click/core.py:103

def _echo_aborted() -> None:
    """Write the final abort message to standard error."""
    echo(_("Aborted!"), file=sys.stderr)


def _outside_click_stacklevel() -> int:
    """Depth of the first stack frame outside Click.

    .. versionadded:: 8.6.0
    """
    frame: FrameType | None = sys._getframe(1)
    level = 1

    while frame is not None:
        module = frame.f_globals.get("__name__", "")

        if module != "click" and not module.startswith("click."):
            return level

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…