/usr/lib/fixperms/venv/lib/python3.13/site-packages/packaging/__pycache__
Edit: /usr/lib/fixperms/venv/lib/python3.13/site-packages/packaging/__pycache__/errors.cpython-313.pyc (4396B)
gix
S SK Jr S SKrS SKrS SKrS SKrS/rS
S jr\R S: a S SK J
r
O " S S\5 r
\R " S S 5 5 r
g) )annotationsNExceptionGroupc [ $ N)__all__ G/usr/lib/fixperms/venv/lib/python3.13/site-packages/packaging/errors.py__dir__r s Nr ) )r c B \ rS rSr% SrS\S' S\S' SS jrSS jrS rg
)
r zA minimal implementation of :external:exc:`ExceptionGroup` from Python 3.11.
If :external:exc:`ExceptionGroup` is already defined by Python itself,
that version is used instead.
strmessagelist[Exception]
exceptionsc Xl X l g r )r r )selfr r s r
__init__ExceptionGroup.__init__ s "L(Or c l U R R SU R < SU R < S3$ )N(z, )) __class____name__r r )r s r
__repr__ExceptionGroup.__repr__! s1 nn--.a/?r$//ATTUVVr )r r N)r r r r returnNone)r r ) r
__module____qualname____firstlineno____doc____annotations__r r __static_attributes__r r r
r r s ## ) Wr c \ rS rSr% Sr\R " \SS9rS\ S' S
S jr
\R SS j5 r
\R SS j5 r SS
jrSrg)_ErrorCollector% a
Collect errors into ExceptionGroups.
Used like this:
collector = _ErrorCollector()
# Add a single exception
collector.error(ValueError("one"))
# Supports nesting, including combining ExceptionGroups
with collector.collect():
raise ValueError("two")
collector.finalize("Found some errors")
Since making a collector and then calling finalize later is a common pattern,
a convenience method ``on_exit`` is provided.
F)default_factoryinitr errorsc P U R ( a [ XR 5 eg)z0Raise a group exception if there are any errors.N)r, r r msgs r
finalize_ErrorCollector.finalize; s ;; kk22 r c # 6 # U v U R U5 g7f)z`
Calls finalize if no uncollected errors were present.
Uncollected errors are raised normally.
N)r0 r. s r
on_exit_ErrorCollector.on_exit@ s
cs c ' # U=( d [ 4n Sv g! [ a/ nU R R UR 5 SnAgSnAfU a% nU R R U5 SnAgSnAff = f7f)z}
Context manager to collect errors into the error list.
Must be inside loops, as only one error can be collected at a time.
N) Exceptionr r, extendr append)r err_cls
error_classeserrors r
collect_ErrorCollector.collectJ sc /I<
& 1KKu//00 &KKu%% &s<