R`i' 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) basestringstrurlparse)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.zNon-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.)categoryzNon-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 warningswarnformatDeprecationWarningr typeencoder r joinstrip)usernamepasswordauthstrs /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/requests/auth.py_basic_auth_strr s h + x(' x=h + tH~.' x= (C ??8,(C ??8,)$))Xx01288: G N c e Zd ZdZd Zy)AuthBasez4Base class that all auth implementations derive fromc t d )NzAuth hooks must be callable.)NotImplementedErrorselfrs r __call__zAuthBase.__call__H s !"@AAr 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 > D!AA D!AA r c | |k( S r/ r+ r7 s r __ne__zHTTPBasicAuth.__ne__[ 5= r c ` t | j | j |j d<