%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/protocols/haproxy/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/protocols/haproxy/__pycache__/_parser.cpython-312.pyc

�

Ϫ�fi���dZddlmZmZddlmZddlmZddlm	Z	m
Z
mZmZddl
mZddlmZd	eed
fdeeefdefd
�Zeee	�Gd�d��Zy)z(
Parser for 'haproxy:' string endpoint.
�)�Mapping�Tuple)�implementer)�
interfaces)�!IStreamServerEndpointStringParser�_WrapperServerEndpoint�quoteStringArgument�serverFromString)�IPlugin�)�
proxyEndpoint�args.�kwargs�returnc
��dj|D�cgc]}tt|����c}td�|j	�D��z�}|Scc}w)a
    Un-parse the already-parsed args and kwargs back into endpoint syntax.

    @param args: C{:}-separated arguments

    @param kwargs: C{:} and then C{=}-separated keyword arguments

    @return: a string equivalent to the original format which this was parsed
        as.
    �:c	3�K�|]=\}}djtt|��tt|������?y�w)z{}={}N)�formatr	�str)�.0�key�values   �C/usr/lib/python3/dist-packages/twisted/protocols/haproxy/_parser.py�	<genexpr>z"unparseEndpoint.<locals>.<genexpr>%s?����
���U�
�N�N�#�C��H�-�/B�3�u�:�/N�
�
�s�AA)�joinr	r�sorted�items)rr�arg�descriptions    r�unparseEndpointr sY���(�(�26�7�3�	�S��X�	&�7�
�
�%�l�l�n�	
�
�	
��K����	8s�Ac�@�eZdZdZdZdejdededefd�Z	y)	�HAProxyServerParserz�
    Stream server endpoint string parser for the HAProxyServerEndpoint type.

    @ivar prefix: See L{IStreamServerEndpointStringParser.prefix}.
    �haproxy�reactorrrrc�H�t||�}t||�}t|�S)a[
        Parse a stream server endpoint from a reactor and string-only arguments
        and keyword arguments.

        @param reactor: The reactor.

        @param args: The parsed string arguments.

        @param kwargs: The parsed keyword arguments.

        @return: a stream server endpoint
        @rtype: L{IStreamServerEndpoint}
        )r r
r
)�selfr$rr�subdescription�wrappedEndpoints      r�parseStreamServerz%HAProxyServerParser.parseStreamServer9s'�� )��v�6��*�7�N�C���_�-�-�N)
�__name__�
__module__�__qualname__�__doc__�prefixr�IReactorCore�objectrr)�r*rr"r"/s9����F�.�!�.�.�.�7=�.�IO�.�	�.r*r"N)r.�typingrr�zope.interfacer�twisted.internetr�twisted.internet.endpointsrrr	r
�twisted.pluginr�r
r1rr r"r2r*r�<module>r9st��
�"�&�'���#���%����,��g�c�6�k�6J��s��0
�W�7�8�.�.�9�.r*

Zerion Mini Shell 1.0