ϪfidZddlmZmZddlmZddlmZddlm Z m Z m Z m Z ddl mZddlmZd eed fd eeefd efd Zeee GddZy)z( Parser for 'haproxy:' string endpoint. )MappingTuple) implementer) interfaces)!IStreamServerEndpointStringParser_WrapperServerEndpointquoteStringArgumentserverFromString)IPlugin) proxyEndpointargs.kwargsreturnc dj|Dcgc]}tt|c}td|j Dz}|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 3K|]=\}}djtt|tt|?yw)z{}={}N)formatr str).0keyvalues C/usr/lib/python3/dist-packages/twisted/protocols/haproxy/_parser.py z"unparseEndpoint..%s? U NN#CH-/B3u:/N  sAA)joinr rsorteditems)rrarg descriptions runparseEndpointr sY((2673 SX &7  %lln    K  8sAc@eZdZdZdZdej dededefdZ y) HAProxyServerParserz Stream server endpoint string parser for the HAProxyServerEndpoint type. @ivar prefix: See L{IStreamServerEndpointStringParser.prefix}. haproxyreactorrrrcHt||}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$rrsubdescriptionwrappedEndpoints rparseStreamServerz%HAProxyServerParser.parseStreamServer9s' )v6*7NC_--N) __name__ __module__ __qualname____doc__prefixr IReactorCoreobjectrr)r*rr"r"/s9 F.!...7=.IO. .r*r"N)r.typingrrzope.interfacertwisted.internetrtwisted.internet.endpointsrrr r twisted.pluginr r r1rr r"r2r*rr9st "&' #% ,gc6k6Js0 W78..9.r*