
                         &    d dl mZmZ d dlmZ d Zy)    )loadsdumps)
to_unicodec                 R    d }d| j                   _        | j                  d|       | S )Nc                     t        | j                        }d|d<   t        t        |            j	                  d      | _        | S )NBearer
token_typezUTF-8)r   textr   r   encode_content)rtokens     ;lib/third_party/requests_oauthlib/compliance_fixes/weibo.py_missing_token_typez1weibo_compliance_fix.<locals>._missing_token_type   s9    !&&ME"E,E%L)009AJH    queryaccess_token_response)_clientdefault_token_placementregister_compliance_hook)sessionr   s     r   weibo_compliance_fixr      s,     -4'//)	""#:<OP	.r   N)jsonr   r   oauthlib.commonr   r    r   r   <module>r      s     &
r   