403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/twisted/protocols/haproxy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/twisted/protocols/haproxy/__pycache__/_parser.cpython-310.pyc
o

�bi�@s�dZddlmZmZddlmZddlmZddlm	Z	m
Z
mZmZddl
mZddlmZd	eed
fdeeefdefd
d�Zeee	�Gdd�d��ZdS)z(
Parser for 'haproxy:' string endpoint.
�)�Mapping�Tuple)�implementer)�
interfaces)�!IStreamServerEndpointStringParser�_WrapperServerEndpoint�quoteStringArgument�serverFromString)�IPlugin�)�
proxyEndpoint�args.�kwargs�returncCs.d�dd�|D�tdd�|��D���}|S)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.
    �:cSsg|]}tt|���qS�)r�str)�.0�argrr�C/usr/lib/python3/dist-packages/twisted/protocols/haproxy/_parser.py�
<listcomp>$sz#unparseEndpoint.<locals>.<listcomp>css0�|]\}}d�tt|��tt|���VqdS)z{}={}N)�formatrr)r�key�valuerrr�	<genexpr>%s���
�z"unparseEndpoint.<locals>.<genexpr>)�join�sorted�items)r
r�descriptionrrr�unparseEndpoints���	rc@s0eZdZdZdZdejdededefdd�Z	d	S)
�HAProxyServerParserz�
    Stream server endpoint string parser for the HAProxyServerEndpoint type.

    @ivar prefix: See L{IStreamServerEndpointStringParser.prefix}.
    �haproxy�reactorr
rrcOst||�}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}
        )rr	r)�selfr"r
r�subdescription�wrappedEndpointrrr�parseStreamServer9s

z%HAProxyServerParser.parseStreamServerN)
�__name__�
__module__�__qualname__�__doc__�prefixr�IReactorCore�objectrr&rrrrr /s����r N)r*�typingrr�zope.interfacer�twisted.internetr�twisted.internet.endpointsrrrr	�twisted.pluginr
�rr-rrr rrrr�<module>s&

Youez - 2016 - github.com/yon3zu
LinuXploit