Server IP : 192.158.238.246 / Your IP : 3.144.165.218 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3.6/site-packages/oauthlib/oauth1/rfc5849/__pycache__/ |
Upload File : |
3 ,�[� � @ s� d Z ddlmZmZ ddlmZmZmZmZ yddl Z W n e k rV ddljZ Y nX dZ dd� Zdd � Zd d� Zdd � Zdd� Zdd� Zdd� ZdS )zn oauthlib.utils ~~~~~~~~~~~~~~ This module contains utility methods used by various parts of the OAuth spec. � )�absolute_import�unicode_literals)� bytes_type�quote�unicode_type�unquoteNZ>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789c s � fdd�}� j |_ |S )z�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. c s t | �} � | f|�|�S )N)�filter_oauth_params)�params�args�kwargs)�target� �/usr/lib/python3.6/utils.py�wrapper s zfilter_params.<locals>.wrapper)�__doc__)r r r )r r � filter_params s r c C s: dd� }t | t�r(tt|t| j� ���S tt|| ��S dS )zARemoves all non oauth parameters from a dict or a list of params.c S s | d j d�S )Nr Zoauth_)� startswith)Zkvr r r �<lambda>( s z%filter_oauth_params.<locals>.<lambda>N)� isinstance�dict�list�filter�items)r Zis_oauthr r r r &