|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/local/lib/python3.6/site-packages/oauthlib/oauth2/rfc6749/__pycache__/ |
Upload File : |
3
F�Kd� � @ sl d Z ddlZddlZddlmZmZ ddlmZ dd� Zdd� Z d d
� Z
dd� Zd
d� Zdd� Z
dd� ZdS )zp
oauthlib.utils
~~~~~~~~~~~~~~
This module contains utility methods used by various parts of the OAuth 2 spec.
� N)�quote�urlparse)� urldecodec 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 � )�str)�.0�sr r �A/tmp/pip-build-8nxjc3nm/oauthlib/oauthlib/oauth2/rfc6749/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<