Viewing File: /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/auth.pyo
ó
“tÆ_c @ 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( ( sJ /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/auth.pyt _basic_auth_str s&