ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyparsing/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/pyparsing/__pycache__/actions.cpython-311.pyc |
� �܋f � � � d dl mZ d dlmZ G d� d� � Zd� Zd� Zd� Zd� Z e � � e_ dd �ZeZeZ eZeZeZdS ) � )�ParseException)�colc �$ � e Zd ZdZd� Zd� Zd� ZdS )�OnlyOncezI Wrapper for parse actions, to ensure they are only called once. c �@ � ddl m} ||� � | _ d| _ d S )Nr )�_trim_arityF)�corer �callable�called)�self�method_callr s �b/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyparsing/actions.py�__init__zOnlyOnce.__init__ s0 � �%�%�%�%�%�%�#��K�0�0�� ������ c �r � | j s | � |||� � }d| _ |S t ||d� � �)NTz.OnlyOnce obj called multiple times w/out reset)r r r )r �s�l�t�resultss r �__call__zOnlyOnce.__call__ s@ � ��{� ��m�m�A�q�!�,�,�G��D�K��N��Q��#S�T�T�Tr c � � d| _ dS )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 sN � � � � � �� �� � �U� U� U�� � � � r r c � � � � fd�}|S )zt Helper method for defining parse actions that require matching at a specific column in the input text. c �x �� t || � � �k r$t | |d� �� � � � �d S )Nzmatched token not at column {})r r �format)�strg�locn�toks�ns �r � verify_colz%match_only_at_col.<locals>.verify_col'