/opt/alt/python27/lib/python2.7/site-packages/requests
Edit: /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyc (21709B)
ó
¹Ö#Wc @ sE d Z d d l Z d d l 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
r‹ d d l Z
n Xd e
f d „ ƒ YZ d e
f d „ ƒ YZ d „ Z d
„ Z d d d „ Z d e f d
„ ƒ YZ d e j e j f d „ ƒ YZ d „ Z d „ Z d „ Z d e d „ Z d „ Z d S( sŠ
Compatibility code to be able to use `cookielib.CookieJar` with requests.
requests.utils imports from here, so be careful with imports.
iÿÿÿÿNi ( t cookielibt urlparset
urlunparset Morselt MockRequestc B s¡ e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d d „ Z d „ Z d
„ Z
d „ Z e d „ ƒ Z e d
„ ƒ Z e d „ ƒ Z RS( sò 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( t _rt _new_headersR t urlt schemet type( t selft request( ( sA /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyt __init__# s c C s | j S( N( R ( R
( ( sA /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyt get_type( s c C s t | j j ƒ j S( N( R R R t netloc( R
( ( sA /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyt get_host+ s c C s
| j ƒ S( N( R ( R
( ( sA /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyt get_origin_req_host. s c C sl | j j j d ƒ s | j j S| j j d } t | j j ƒ } t | j | | j | j | j | j
g ƒ S( Nt Host( R t headerst getR R R R t patht paramst queryt fragment( R
t hostt parsed( ( sA /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyt get_full_url1 s
c C s t S( N( t True( R
( ( sA /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyt is_unverifiable? s c C s | | j j k p | | j k S( N( R R R ( R
t name( ( sA /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyt
has_headerB s c C s% | j j j | | j j | | ƒ ƒ S( N( R R R R ( R
R t default( ( sA /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyt
get_headerE s c C s t d ƒ ‚ d S( sM cookielib has no legitimate use for this method; add it back if you find one.s= Cookie headers should be added with add_unredirected_header()N( t NotImplementedError( R
t keyt val( ( sA /opt/alt/python27/lib/python2.7/site-packages/requests/cookies.pyt
add_headerH s c C s | | j |