Viewing File: /usr/lib/python3.6/site-packages/pip/_vendor/requests/__pycache__/sessions.cpython-36.pyc
3
ajp @ s d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZmZm
Z
mZmZ ddlmZmZmZmZ dd lmZmZmZ dd
lmZmZ ddlmZ ddlmZm Z dd
l!m"Z"m#Z#m$Z$m%Z% ddl&m'Z' ddl(m)Z) ddlm*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0 ddl1m2Z2 ddlm3Z3 ej4 dkrXy
ej5Z6W n e7k
rT ej8Z6Y nX nejZ6e
fddZ9e
fddZ:G dd de;Z<G dd de<Z=dd Z>dS )z
requests.session
~~~~~~~~~~~~~~~~
This module provides a Session object to manage and persist settings across
requests (cookies, auth, proxies).
N)Mapping) timedelta )_basic_auth_str) cookielibis_py3OrderedDicturljoinurlparse)cookiejar_from_dictextract_cookies_to_jarRequestsCookieJar
merge_cookies)RequestPreparedRequestDEFAULT_REDIRECT_LIMIT)
default_hooks
dispatch_hook)to_native_string)to_key_val_listdefault_headers)TooManyRedirects
InvalidSchemaChunkedEncodingErrorContentDecodingError)CaseInsensitiveDict)HTTPAdapter)requote_uriget_environ_proxiesget_netrc_authshould_bypass_proxiesget_auth_from_urlrewind_body
DEFAULT_PORTS)codes)REDIRECT_STATIZWindowsc C st |dkr| S | dkr|S t |to*t | ts0| S |t|}|jt| dd |j D }x|D ]
}||= qbW |S )zDetermines appropriate setting for a given request, taking into account
the explicit setting on that request, and the setting in the session. If a
setting is a dictionary, they will be merged together using `dict_class`
Nc S s g | ]\}}|d kr|qS )N ).0kvr&