Ñò ñ1Mc@sdZddkZddkTddkZddkZddkZdeifd„ƒYZdefd„ƒYZ dd„Z dS( s­ M2Crypto enhancement to Python's urllib2 for handling 'https' url's. Code from urllib2 is Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Python Software Foundation; All Rights Reserved Summary of changes: - Use an HTTPSProxyConnection if the request is going through a proxy. - Add the SSL context to the https connection when performing https_open. - Add the M2Crypto HTTPSHandler when building a default opener. iÿÿÿÿN(t*t_closing_fileobjectcBs eZdZd„Zd„ZRS(sŠsocket._fileobject that propagates self.close() to the socket. Python 2.5 provides this as socket._fileobject(sock, close=True). cCstii||ƒdS(N(tsockett _fileobjectt__init__(tselftsock((s8/usr/lib/python2.6/vendor-packages/M2Crypto/m2urllib2.pyRscCs'|i}tii|ƒ|iƒdS(N(t_sockRRtclose(RR((s8/usr/lib/python2.6/vendor-packages/M2Crypto/m2urllib2.pyRs (t__name__t __module__t__doc__RR(((s8/usr/lib/python2.6/vendor-packages/M2Crypto/m2urllib2.pyRs t HTTPSHandlercBs&eZdd„Zd„ZeiZRS(cCsWti|ƒ|dj o*t|tiƒp t|‚||_ntiƒ|_dS(N(tAbstractHTTPHandlerRtNonet isinstancetSSLtContexttAssertionErrortctx(Rt ssl_context((s8/usr/lib/python2.6/vendor-packages/M2Crypto/m2urllib2.pyR%s    c Csm|iƒ}|ptdƒ‚n|iƒ}ti|ƒd}||jotid|d|iƒ}ntid|d|iƒ}|i|i ƒt |i ƒ}|i |i ƒd|d s     L