�
'�{g� � �^ � S r SSKrSSKrSSKJrJr SSKJr S rS r S r
S rS rS
r
S rg)zp
oauthlib.utils
~~~~~~~~~~~~~~
This module contains utility methods used by various parts of the OAuth 2 spec.
� N)�quote�urlparse)� urldecodec �� � [ U [ 5 ( d U c U $ [ U [ [ [ 45 ( a+ SR U Vs/ s H n[ U5 PM sn5 $ [
SU - 5 es snf )z5Convert a list of scopes to a space separated string.� z8Invalid scope (%s), must be string, tuple, set, or list.)�
isinstance�str�set�tuple�list�join�
ValueError��scope�ss �?/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/utils.py�
list_to_scoper se � ��%�������� �E�C���-� .� .��x�x��/��A��Q���/�0�0��S�V[�[�\�\�� 0s �
A4c �� � [ U [ [ [ 45 ( a U Vs/ s H n[ U5 PM sn$ U c gU R 5 R
S5 $ s snf )z5Convert a space separated string to a list of scopes.Nr )r r r r
r �strip�splitr s r �
scope_to_listr sS � ��%�%��s�+�,�,� %�&��1��A���&�&� ����{�{�}�"�"�3�'�'�� 's �A c � � [ [ [ U 5 R 5 5 nSU; a [ US 5 US'