| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF 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<