| Server IP : 195.114.193.97 / Your IP : 216.73.216.135 Web Server : LiteSpeed System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 User : joker4274 ( 1074) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/pip/_vendor/pyparsing/__pycache__/ |
Upload File : |
o
!��h � @ sp d dl mZ d dlmZ G dd� d�Zdd� Zdd� Zd d
� Zdd� Ze � e_
ddd�ZeZeZ
eZeZeZdS )� )�ParseException)�colc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �OnlyOncezI
Wrapper for parse actions, to ensure they are only called once.
c C s ddl m} ||�| _d| _d S )Nr )�_trim_arityF)�corer �callable�called)�self�method_callr � r �?/usr/lib/python3/dist-packages/pip/_vendor/pyparsing/actions.py�__init__ s
zOnlyOnce.__init__c C s* | j s| �|||�}d| _ |S t||d��)NTz.OnlyOnce obj called multiple times w/out reset)r r r )r �s�l�t�resultsr r r �__call__ s
zOnlyOnce.__call__c C s
d| _ dS )zK
Allow the associated parse action to be called once more.
FN)r )r r r r �reset s
zOnlyOnce.resetN)�__name__�
__module__�__qualname__�__doc__r
r r r r r r r s
r c s � fdd�}|S )zt
Helper method for defining parse actions that require matching at
a specific column in the input text.
c s$ t || �� krt| |d�� ���d S )Nzmatched token not at column {})r r �format)�strg�locn�toks��nr r �
verify_col'