[ol9_automation2.3] python3.11-jaraco-context-6.0.1-1.el9.noarch

Name:python3.11-jaraco-context
Version:6.0.1
Release:1.el9
Architecture:noarch
Group:Unspecified
Size:18407
License:MIT
RPM: python3.11-jaraco-context-6.0.1-1.el9.noarch.rpm
Source RPM: python-jaraco-context-6.0.1-1.el9.src.rpm
Build Date:Wed Mar 05 2025
Build Host:build-ol9-x86_64.oracle.com
Vendor:Oracle America
URL:https://github.com/jaraco/jaraco.context
Summary:Context managers by jaraco
Description:
See the docs linked from the badge above for the full details, but here are some features that may be of interest.

ExceptionTrap provides a general-purpose wrapper for trapping exceptions and then acting on the outcome.
Includes passes and raises decorators to replace the result of a wrapped function by a boolean indicating the outcome of the exception trap.
 See this keyring commit for an example of it in production.

suppress simply enables contextlib.suppress as a decorator.

on_interrupt is a decorator used by CLI entry points to affect the handling of a KeyboardInterrupt. Inspired by Lucretiel/autocommand#18.

pushd is similar to pytest’s monkeypatch.chdir or path’s default context, changes the current working directory for the duration of the context.

tarball will download a tarball, extract it, change directory, yield, then clean up after. Convenient when working with web assets.

null is there for those times when one code branch needs a context and the other doesn’t; this null context provides symmetry across those branches.

Changelog (Show File list) (Show related packages)