
    z
g                         	 ddZ d S )Nc                 v   g }| rS|Q|                      d                              dd          } |                    dt          |          | fz             n t	          | |g          rt          d          |r|                    d|z             |%|                    dt          |          z             |S )	z
    Build a list of twisted endpoint description strings that the server will listen on.
    This is to streamline the generation of twisted endpoint description strings from easier
    to use command line args such as host, port, unix sockets etc.
    Nz[]:z\:ztcp:port=%d:interface=%sz/TCP binding requires both port and host kwargs.zunix:%szfd:fileno=%d)stripreplaceappendintany
ValueError)hostportunix_socketfile_descriptorsocket_descriptionss        B/var/www/html/env/lib/python3.11/site-packages/daphne/endpoints.py"build_endpoint_description_stringsr      s      L zz$''U33""#=TD@Q#QRRRR	dD\		 LJKKK <""9{#:;;;""">C4H4H#HIII    )NNNN)r    r   r   <module>r      s&   <@     r   