o
    éË·e­  ã                   @   sP   z
d dl m Z mZ W n ey   d dlm Z mZ Y nw 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© ú_/var/www/ideatree/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)r   r   ÚImportErrorÚurllib.parseÚoauthlib.commonr   r   r   r   r   r   Ú<module>   s    ÿ