|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/__pycache__/ |
U
O��g� � @ 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:d�dd� | 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 �J/opt/cppython/lib/python3.8/site-packages/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<