File: //lib/python3/dist-packages/twisted/protocols/haproxy/__pycache__/_parser.cpython-38.pyc
U
W[ � @ sn d Z ddlmZ ddlmZ ddlmZmZmZ ddl m
Z
ddlmZ dd � Z
eee�G d
d� de��ZdS )
z(
Parser for 'haproxy:' string endpoint.
� )�implementer)�IPlugin)�quoteStringArgument�serverFromString�!IStreamServerEndpointStringParser)� iteritems� )�
proxyEndpointc C s. d� dd� | D �tdd� t|�D �� �}|S )a�
Un-parse the already-parsed args and kwargs back into endpoint syntax.
@param args: C{:}-separated arguments
@type args: L{tuple} of native L{str}
@param kwargs: C{:} and then C{=}-separated keyword arguments
@type arguments: L{tuple} of native L{str}
@return: a string equivalent to the original format which this was parsed
as.
@rtype: native L{str}
�:c S s g | ]}t t|���qS � �r �str)�.0�argr r �C/usr/lib/python3/dist-packages/twisted/protocols/haproxy/_parser.py�
<listcomp>% s z#unparseEndpoint.<locals>.<listcomp>c S s, g | ]$\}}d t t|��t t|��f �qS )z%s=%sr )r �key�valuer r r r &