• File: urllib2_build_opener.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python2.7/site-packages/ndg/httpsclient/urllib2_build_opener.pyc
  • Date Modified: 10/31/2014 10:04 AM
  • File size: 2.37 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

Oc@sdZdZdZdZdZdZdZddlZdd	lm	Z	m
Z
mZmZm
Z
mZmZmZmZdd
lmZejeZdZdS(sTurllib2 style build opener integrates with HTTPSConnection class from this
package.
sP J Kershaws21/12/10s2(C) 2011 Science and Technology Facilities Councils-BSD - see LICENSE file in top-level directorysPhilip.Kershaw@stfc.ac.uks$Id$iN(	tProxyHandlertUnknownHandlertHTTPDefaultErrorHandlert
FTPHandlertFileHandlertHTTPErrorProcessortHTTPHandlertOpenerDirectortHTTPRedirectHandler(tHTTPSContextHandlercskddlfd}t}tttttttt	g}t
|}|jtg}xl|D]d}x[|D]S}||rt
||r|j|qqut||ru|j|ququWqhWx-|D]%}||kr|j|qqW|jd}	t|kr1|jt|	nx3|D]+}
||
rV|
}
n|j|
q8W|S(sCreate an opener object from a list of handlers.

    The opener will use several default handlers, including support
    for HTTP and FTP.

    If any of the handlers passed as arguments are subclasses of the
    default handlers, the default handlers will not be used.
    iNcst|jpt|dS(Nt	__bases__(t
isinstancet	ClassTypethasattr(tobj(ttypes(sH/usr/lib/python2.7/site-packages/ndg/httpsclient/urllib2_build_opener.pytisclassstssl_context(RRRRRRRRRRtlisttappendR	t
issubclassRtadd_handlertget(thandlerstkwRtopenertdefault_classest
check_classestskiptklasstcheckRth((RsH/usr/lib/python2.7/site-packages/ndg/httpsclient/urllib2_build_opener.pytbuild_openers6			




(t__doc__t
__author__t__date__t
__copyright__t__license__t__contact__t__revision__tloggingturllib2RRRRRRRRRtndg.httpsclient.httpsR	t	getLoggert__name__tlogR (((sH/usr/lib/python2.7/site-packages/ndg/httpsclient/urllib2_build_opener.pyt<module>s@