|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /proc/self/root/usr/lib/python2.7/site-packages/requests/ |
Upload File : |
�
�J�bc @ s d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m
Z
m Z m Z d d l
m Z d d l m Z d d l m Z d Z d
Z d � Z d e f d
� � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s]
requests.auth
~~~~~~~~~~~~~
This module contains the authentication handlers for Requests.
i����N( t b64encodei ( t urlparset strt
basestring( t extract_cookies_to_jar( t to_native_string( t parse_dict_headers! application/x-www-form-urlencodeds multipart/form-datac C s� t | t � s: t j d j | � d t �t | � } n t | t � sz t j d j t | � � d t �t | � } n t | t � r� | j d � } n t | t � r� | j d � } n d t t
d j | | f � � j � � } | S( s Returns a Basic Auth string.s� 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.t categorys� 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.t latin1s Basic t :(
t
isinstanceR t warningst warnt formatt DeprecationWarningR t typet encodeR R t joint strip( t usernamet passwordt authstr( ( s1 /tmp/pip-install-D9Q2tG/requests/requests/auth.pyt _basic_auth_str s&