3 æÈ[Þ' ã @ 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ƒsLtjdj|ƒtd� t|ƒ}t | tƒr`| jdƒ} t |tƒrt|jdƒ}dtt 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 Úencoder r ÚjoinÚstrip)ÚusernameÚpasswordZauthstr© r ú/usr/lib/python3.6/auth.pyÚ_basic_auth_str s&