R`i d dl mZ d dlmZmZ G d d Zd Zd Zd Zd Z e
e _ dd Z ee d
Z
ee d Z ee d Z ee d
Z ee d Zy) )ParseException)colreplaced_by_pep8c " e Zd ZdZd Zd Zd Zy)OnlyOncezI
Wrapper for parse actions, to ensure they are only called once.
c 8 ddl m} || | _ d| _ y )Nr )_trim_arityF)corer callablecalled)selfmethod_callr s /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/pyparsing/actions.py__init__zOnlyOnce.__init__ s %#K0
c l | j s| j ||| }d| _ |S t ||d )NTz.OnlyOnce obj called multiple times w/out reset)r r r )r
sltresultss r __call__zOnlyOnce.__call__ s7 {{mmAq!,GDKNQ#STTr c d| _ y)zK
Allow the associated parse action to be called once more.
FN)r )r
s r resetzOnlyOnce.reset s
r N)__name__
__module____qualname____doc__r r r r r r r s Ur r c fd}|S )zt
Helper method for defining parse actions that require matching at
a specific column in the input text.
c D t || k7 rt | |d y )Nzmatched token not at column )r r )strglocntoksns r
verify_colz%match_only_at_col.