o
    ±3Ihd  ã                   @   s(   d dl mZmZ d dlmZ dd„ ZdS )é    )ÚurlparseÚparse_qs)Úadd_params_to_uric                    s   ‡ fdd„}ˆ   d|¡ ˆ S )Nc                    sˆ   t tt| ƒjƒƒ}| d¡}|st|t ƒr| d¡}|r!| ||fS |s)dˆ ji}nt|t ƒr4ˆ j|d< ndˆ jfg}t| |ƒ} | ||fS )NÚtoken)Údictr   r   ÚqueryÚgetÚ
isinstanceÚaccess_tokenr   )ÚurlÚheadersÚdataÚ	url_queryr   ©Úsession© úh/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/requests_oauthlib/compliance_fixes/slack.pyÚ_non_compliant_param_name   s   





z7slack_compliance_fix.<locals>._non_compliant_param_nameÚprotected_request)Úregister_compliance_hook)r   r   r   r   r   Úslack_compliance_fix   s   r   N)Úurllib.parser   r   Úoauthlib.commonr   r   r   r   r   r   Ú<module>   s    