def filter_params(target):
 def wrapper(params, *args, **kwargs):
  params = filter_oauth_params(params)
  return target(params, *args, **kwargs)
 wrapper.__doc__ = target.__doc__
 return wrapper

def filter_params ( target ) : def wrapper ( params , * args , ** kwargs ) : params = filter_oauth_params ( params ) return target ( params , * args , ** kwargs ) wrapper . __doc__ = target . __doc__ return wrapper
decorator which filters params to remove non-oauth_* parameters assumes the decorated method takes a params dict or list of tuples as its first argument .