U
    gz                     @   s  d Z ddlZddlZddlZddlZddlZddlZddlZ	ddl
Z	ddlZ	ddlZ	ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlm  mZ ddlZddlZddlmZ ddlm Z! ddlm"Z# ddl$m%Z%m&Z&m'Z' ddl(m)Z) d	d
l*m+Z, d	dl*m-Z. d	dl/m0Z1 d	dl2m3Z4 e)e5dd dd Z6ej7fddZ8ej9Z:e;Z<e;j=Z>e?Z@ejAZBe	jC ZDZEe	jCjF ZGZHe	jI ZJZKe	jIjL ZMZNejO ZPZQejR ZSZTeUZVejWZXejYZZej Z[Z\ej]Z^ej]j_Z`e&Zaejbjc ZdZee	jfZge	jhZiejZkelfZmejnZodd ZpeqZrelesetfZue%Zve'ZwexZyejzZ{ej|Z}ej~ZejZejZdd ZejZejZe4ZejZejjZejjZejjZejjZejjZejjZejZejjZejZejj ZZej ZZdd ZeZdd Zg ZdS )z Do not use!     N)run)Pattern)match   )compat_expandusercompat_HTMLParseErrorcompat_realpath)passthrough_module   )brotli)
websockets)AES)	HTTPErrorz...utils)ZWINDOWS_VT_MODEZwindows_enable_vt_modec                  O   s   t j| |S N)ctypesZWINFUNCTYPE)argskwargs r   9/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/compat/_legacy.pycompat_ctypes_WINFUNCTYPE-   s    r   c                 C   s   ||| < d S r   r   )keyvalueenvr   r   r   compat_setenv1   s    r   c                 C   s   | S r   r   )r   r   r   r   <lambda>M       r   c                   C   s   t jS r   )
subprocessDEVNULLr   r   r   r   r   X   r   c                 C   s   | S r   r   )Zxpathr   r   r   r   h   r   c                   C   s   d S r   r   r   r   r   r   r   j   r   )__doc__base64collectionsr   getpasshtml.entitieshtmlhtml.parserhttp.clienthttphttp.cookiejarhttp.cookiesZhttp.server	itertoolsosshlexshutilsocketstructr   tokenizeurllib.errorurlliburllib.parseurllib.requestxml.etree.ElementTreeetreeElementTreeZasynciorer   Zcompat_asyncio_runr   Zcompat_Patternr   Zcompat_Match r   r   r   Zcompat_utilsr	   Zdependenciesr   Zcompat_brotlir   Zcompat_websocketsZdependencies.Cryptodomer   Zcompat_pycrypto_AESZnetworking.exceptionsr   Zcompat_HTTPError__name__r   environr   	b64decodeZcompat_base64_b64decodestrZcompat_basestringcasefoldZcompat_casefoldchrZ
compat_chrabcZcompat_collections_abc	cookiejarZcompat_cookiejarZcompat_http_cookiejarCookieZcompat_cookiejar_CookieZcompat_http_cookiejar_CookiecookiesZcompat_cookiesZcompat_http_cookiesSimpleCookieZcompat_cookies_SimpleCookieZ compat_http_cookies_SimpleCookieElementZcompat_etree_ElementZ$compat_xml_etree_ElementTree_Elementregister_namespaceZcompat_etree_register_namespaceZ#compat_xml_etree_register_namespacefilterZcompat_filterget_terminal_sizeZcompat_get_terminal_sizegetenvZcompat_getenvZcompat_getpassZcompat_getpass_getpassentitiesZcompat_html_entitieshtml5Zcompat_html_entities_html5Z!compat_html_parser_HTMLParseErrorparser
HTMLParserZcompat_HTMLParserZcompat_html_parser_HTMLParserclientZcompat_http_clientserverZcompat_http_serverinputZcompat_inputintZcompat_integer_typescountZcompat_itertools_countZcompat_kwargsmapZ
compat_mapfloatcomplexZcompat_numeric_typesZcompat_os_path_expanduserZcompat_os_path_realpathprintZcompat_printsplitZcompat_shlex_splitcreate_connectionZcompat_socket_create_connectionStructZcompat_StructpackZcompat_struct_packunpackZcompat_struct_unpackZcompat_subprocess_get_DEVNULLZcompat_tokenize_tokenizeerrorZcompat_urllib_errorZcompat_urllib_HTTPErrorparseZcompat_urllib_parseparse_qsZcompat_urllib_parse_parse_qsquoteZcompat_urllib_parse_quote
quote_plusZcompat_urllib_parse_quote_plusunquote_plusZ compat_urllib_parse_unquote_plusunquote_to_bytesZ$compat_urllib_parse_unquote_to_bytes
urlunparseZcompat_urllib_parse_urlunparserequestZcompat_urllib_requestDataHandlerZ!compat_urllib_request_DataHandlerresponseZcompat_urllib_responseurlretrieveZcompat_urlretrieveZ!compat_urllib_request_urlretrieve
ParseErrorZcompat_xml_parse_errorZ'compat_xml_etree_ElementTree_ParseErrorZcompat_xpathzipZ
compat_zipZworkaround_optparse_bug9161legacyr   r   r   r   <module>   s   






