def encode_request_params(self, request):
        # if params are a dict, make it into a sequence
        params = request.params
        try:
            params = tuple(params.items())
        except __HOLE__:
            pass

        # encode keys and values
        return tuple((self.encode(key), self.encode(val))
                     for key, val in params)
dataset/ETHPy150Open ducksboard/libsaas/libsaas/filters/auth.py/OAuthRFC5849.encode_request_params