관리-도구
편집 파일: cookies.cpython-33.pyc
� 7�Re.A c @ s: d Z d d l Z d d l Z d d l m Z m Z m Z m Z y d d l Z e Wn e k rt d d l Z Yn XGd d � d e � Z Gd d � d e � Z d d � Z d d � Z d d d d � Z Gd d � d e � Z Gd d � d e j e j � Z d d � Z d d � Z d d d d � Z d d � Z d S( u� Compatibility code to be able to use `cookielib.CookieJar` with requests. requests.utils imports from here, so be careful with imports. i Ni ( u cookielibu urlparseu urlunparseu Morselc B s� | Ee Z d Z d Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d d � Z d d � Z d d � Z d d � Z e d d � � Z e d d � � Z e d d � � Z d S( u MockRequestu� 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( u _ru _new_headersu urlparseu urlu schemeu type( u selfu request( ( u5 /tmp/pip-zej_zi-build/pip/_vendor/requests/cookies.pyu __init__! s u MockRequest.__init__c C s | j S( N( u type( u self( ( u5 /tmp/pip-zej_zi-build/pip/_vendor/requests/cookies.pyu get_type&