| 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/oauth2/rfc6749/__pycache__/ |
Upload File : |
3
,�[� � @ s� d Z ddlmZmZ ddlZddlZddlmZmZ yddl m
Z
W n ek
rd ddlm
Z
Y nX yddl
m
Z
W n ek
r� ddlm
Z
Y nX dd� Zd d
� Zdd� Zd
d� Zdd� Zdd� Zdd� ZdS )zp
oauthlib.utils
~~~~~~~~~~~~~~
This module contains utility methods used by various parts of the OAuth 2 spec.
� )�absolute_import�unicode_literalsN)�unicode_type� urldecode)�quote)�urlparsec C sJ t | t�s| dkr| S t | tttf�r:djdd� | D ��S td| ��dS )z5Convert a list of scopes to a space separated string.N� c S s g | ]}t |��qS � )r )�.0�sr r �/usr/lib/python3.6/utils.py�
<listcomp> s z!list_to_scope.<locals>.<listcomp>z8Invalid scope (%s), must be string, tuple, set, or list.)�
isinstancer �set�tuple�list�join�
ValueError)�scoper r r �
list_to_scope s
r c C s<