0x1949 Team - FAZEMRX - MANAGER
Edit File: common.cpython-310.pyc
o ���an4 � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z mZm Z ddlmZ zddlmZ ddlmZ W n eyO ddlmZ ddlmZ Y nw d Zd Ze�dej�Ze�d�Zd Ze�d�Zd:dd�Z dd� Zdd� Z dd� Z dd� Z!e"e�e"d�B Z#dd� Z$dd� Z%dd � Z&d!d"� Z'd#efd$d%�Z(d&d'� Z)d(d)� Z*d#efd*d+�Z+d,d-� Z,d;d/d0�Z-d1d2� Z.d<d4d5�Z/G d6d7� d7e0�Z1G d8d9� d9�Z2dS )=z| oauthlib.common ~~~~~~~~~~~~~~ This module provides data structures and utilities common to all implementations of OAuth. � N)�quote�unquote� urlencode� )� get_debug)�randbits)�SystemRandom)�getrandbits�>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789z_ !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}z&([^&;]*(?:password|token)[^=]*=)[^&;]+z&%[^0-9A-Fa-f]|%[0-9A-Fa-f][^0-9A-Fa-f]zAABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-�oauthlib� /c C s: t | t�r | �d�n| } t| |�} t | t�r| �d�} | S �N�utf-8)� isinstance�str�encode�_quote�bytes�decode)�s�safe� r �1/usr/lib/python3/dist-packages/oauthlib/common.pyr - s r c C s t | �} t| t�r| �d�} | S r )�_unquoter r r )r r r r r 7 s r c C s( t | �}t|�}t|t�r|S |�d�S r )�encode_params_utf8� _urlencoder r r )�params�utf8_params� urlencodedr r r r A s r c C �L g }| D ]\}}|� t|t�r|�d�n|t|t�r|�d�n|f� q|S )ziEnsures that all parameters in a list of 2-element tuples are encoded to bytestrings using UTF-8 r )�appendr r r )r �encoded�k�vr r r r J � �r c C r )zfEnsures that all parameters in a list of 2-element tuples are decoded to unicode using UTF-8. r )r r r r )r �decodedr"