Sindbad~EG File Manager
3
�Pf G �
@ s d Z ddlZddlZddlZddlZddlmZ ddlmZm Z m
Z
mZ yddlZW n e
k
rp ddlZY nX G dd� de�ZG dd � d e�Zd
d� Zdd
� Zddd�ZG dd� de�ZG dd� dejej�Zdd� Zdd� Zdd� Zd dd�Zdd� ZdS )!z�
requests.cookies
~~~~~~~~~~~~~~~~
Compatibility code to be able to use `cookielib.CookieJar` with requests.
requests.utils imports from here, so be careful with imports.
� N� )�to_native_string)� cookielib�urlparse�
urlunparse�Morselc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
ddd�Zdd� Zdd� Z
dd� Zedd� �Zedd� �Zedd� �ZdS ) �MockRequesta� Wraps a `requests.Request` to mimic a `urllib2.Request`.
The code in `cookielib.CookieJar` expects this interface in order to correctly
manage cookie policies, i.e., determine whether a cookie can be set, given the
domains of the request and the cookie.
The original request object is read-only. The client is responsible for collecting
the new headers via `get_new_headers()` and interpreting them appropriately. You
probably want `get_cookie_header`, defined below.
c C s || _ i | _t| j j�j| _d S )N)�_r�_new_headersr �url�scheme�type)�self�request� r �/usr/lib/python3.6/cookies.py�__init__&