def filter_token(access_token_ref):
 if access_token_ref:
  access_token_ref = access_token_ref.copy()
  access_token_ref.pop('access_secret', None)
 return access_token_ref

def filter_token ( access_token_ref ) : if access_token_ref : access_token_ref = access_token_ref . copy ( ) access_token_ref . pop ( 'access_secret' , None ) return access_token_ref
filter out private items in an access token dict .