| Server IP : 23.254.227.96 / Your IP : 216.73.216.21 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /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 &