Viewing File: /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/__pycache__/auth.cpython-35.pyc
t_' @ 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 d Z Gd
d d e Z Gd d d e Z Gd d d e Z Gd d d e Z d S)z]
requests.auth
~~~~~~~~~~~~~
This module contains the authentication handlers for Requests.
N) b64encode )urlparsestr
basestring)extract_cookies_to_jar)to_native_string)parse_dict_headerz!application/x-www-form-urlencodedzmultipart/form-datac C s t | t s7 t j d j | d t t | } t | t st t j d j t | d t t | } t | t r | j d } t | t r | j d } d t t
d j | | f j } | 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)usernamepasswordauthstr r /builddir/build/BUILDROOT/alt-python35-pip-20.2.4-1.el7.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/auth.py_basic_auth_str s&