def change_weibo_header(uri, headers, body):
 auth = headers.get('Authorization')
 if auth:
  auth = auth.replace('Bearer', 'OAuth2')
  headers['Authorization'] = auth
 return (uri, headers, body)

def change_weibo_header ( uri , headers , body ) : auth = headers . get ( 'Authorization' ) if auth : auth = auth . replace ( 'Bearer' , 'OAuth2' ) headers [ 'Authorization' ] = auth return ( uri , headers , body )
since weibo is a rubbish server .