/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__
� �����}?�� �� � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z ddlmZm Z mZ ddlmZ ddlmZ d Zd Zd� Z G d� d � Z G d� de� Z G d� de� Z G d� de� Zy)z] requests.auth ~~~~~~~~~~~~~ This module contains the authentication handlers for Requests. � N)� b64encode� )�to_native_string)� basestring�str�urlparse)�extract_cookies_to_jar)�parse_dict_headerz!application/x-www-form-urlencodedzmultipart/form-datac � � t | t � s5t j dj | � t �� t | � } t |t � s>t j dj t |� � t �� t |� }t | t � r| j d� } t |t � r|j d� }dt t dj | |f� � j � � z }|S )zReturns a Basic Auth string.z�Non-string usernames will no longer be supported in Requests 3.0.0. Please convert the object you've passed in ({!r}) to a string or bytes object in the near future to avoid problems.)�categoryz�Non-string passwords will no longer be supported in Requests 3.0.0. Please convert the object you've passed in ({!r}) to a string or bytes object in the near future to avoid problems.�latin1zBasic � :) � isinstancer �warnings�warn�format�DeprecationWarningr �type�encoder r �join�strip)�username�password�authstrs ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el9.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/requests/auth.py�_basic_auth_strr s� � � �h� �+�� � � � ��x�(�'� � �x�=���h� �+�� � � � ��t�H�~�.�'� � �x�=�� �(�C� ��?�?�8�,���(�C� ��?�?�8�,���)��$�)�)�X�x�0�1�2�8�8�:�� �G� �N� c � � e Zd ZdZd� Zy)�AuthBasez4Base class that all auth implementations derive fromc � � t d� �)NzAuth hooks must be callable.)�NotImplementedError��self�rs r �__call__zAuthBase.__call__H s � �!�"@�A�Ar N��__name__� __module__�__qualname__�__doc__r% � r r r r E s � �>�Br r c �( � e Zd ZdZd� Zd� Zd� Zd� Zy)� HTTPBasicAuthz?Attaches HTTP Basic Authentication to the given Request object.c � � || _ || _ y �N)r r �r# r r s r �__init__zHTTPBasicAuth.__init__O s � � �� � �� r c �| � t | j t |dd � k( | j t |dd � k( g� S �Nr r ��allr �getattrr �r# �others r �__eq__zHTTPBasicAuth.__eq__S �>