3 ”Reß' ã @ sÌ d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z mZmZ ddl mZ ddlmZ ddlmZ d Zd Zdd„ ZG d d„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZdS )z] requests.auth ~~~~~~~~~~~~~ This module contains the authentication handlers for Requests. é N)Ú b64encodeé )ÚurlparseÚstrÚ basestring)Úextract_cookies_to_jar)Úto_native_string)Úparse_dict_headerz!application/x-www-form-urlencodedzmultipart/form-datac C sš t | tƒs&tjdj| ƒtd� t| ƒ} t |tƒsPtjdjt|ƒƒtd� t|ƒ}t | tƒrd| jdƒ} t |tƒrx|jdƒ}dt t dj| |fƒƒjƒ ƒ }|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Úauthstr© r úˆ/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/requests/auth.pyÚ_basic_auth_str s&