
                         &    S SK JrJr  S SKJr  S rg)    )loadsdumps)
to_unicodec                 R    S nSU R                   l        U R                  SU5        U $ )Nc                     [        U R                  5      nSUS'   [        [        U5      5      R	                  S5      U l        U $ )NBearer
token_typezUTF-8)r   textr   r   encode_content)rtokens     ;lib/third_party/requests_oauthlib/compliance_fixes/weibo.py_missing_token_type1weibo_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   