o
    éË·e¼  ã                   @   s(   d dl mZmZ d dlmZ dd„ ZdS )é    )ÚloadsÚdumps)Ú
to_unicodec                 C   s    dd„ }d| j _|  d|¡ | S )Nc                 S   s*   t | jƒ}d|d< tt|ƒƒ d¡| _| S )NÚBearerÚ
token_typezUTF-8)r   Útextr   r   ÚencodeÚ_content)ÚrÚtoken© r   ú_/var/www/ideatree/venv/lib/python3.10/site-packages/requests_oauthlib/compliance_fixes/weibo.pyÚ_missing_token_type   s   
z1weibo_compliance_fix.<locals>._missing_token_typeÚqueryÚaccess_token_response)Ú_clientÚdefault_token_placementÚregister_compliance_hook)Úsessionr   r   r   r   Úweibo_compliance_fix   s   r   N)Újsonr   r   Úoauthlib.commonr   r   r   r   r   r   Ú<module>   s    