@c 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 ZdS )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 s=t j d | t t | } t |t sJt j d t | t t | }t | t r| d } t |t r| d }dt t d | |f 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/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/requests/auth.py_basic_auth_strr s6 h ++ ! x((' x==h ++ ! tH~~..' x== (C -??8,,(C -??8,,)$))Xx0112288:: G N c e Zd ZdZd ZdS )AuthBasez4Base class that all auth implementations derive fromc t d )NzAuth hooks must be callable.)NotImplementedErrorselfrs r __call__zAuthBase.__call__H s !"@AAAr N__name__ __module____qualname____doc__r% r r r r E s. >>B B B B Br r c * e Zd ZdZd Zd Zd Zd ZdS ) HTTPBasicAuthz?Attaches HTTP Basic Authentication to the given Request object.c " || _ || _ d S 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 E D!A!AA D!A!AA r c | |k S r/ r+ r7 s r __ne__zHTTPBasicAuth.__ne__[ 5= r c J t | j | j |j d<