ó U!¶\c@s¢ddlZddlZddlZddlZddlZddlZddlZddlZddlm Z ddl m Z ddl m Z ddlmZejeƒZe jrddlmZdejfd„ƒYZdd lmZdd lmZdd lmZdd lmZdd lmZddlmZddlmZddlm Z ddlm!Z!ddlm"Z"ddl#m$Z$ddl%m&Z'ddl(m)Z)ddl*m+Z+ddl,m-Z-e'Z.e/Z/eZ0d„Z1d„Z2ddd„Z4ddd„Z5nXdd l6mZdd l6mZdd l6mZdd l6mZdd lmZddlmZddlmZddlm Z ddlm!Z!ddlm"Z"ddl7m8Z8ddl9m+Z+e:Z.ddl,m;Z/dd l,m<Z-ddl=m$Z$dd!l(m>Z)de8fd"„ƒYZdd#„Z0d$„Z1d%„Z2ddd&„Z4ddd'„Z5ydd(l?m@Z@Wn!eAk r¥dd(lBm@Z@nXejCd) d5kr×ddlDZEeFZGd+„ZHn0ddlIZJeJjKjLjMZGddlEZEd,„ZHd-„ZNeOd.„ƒZPeOd/„ƒZQePe_PeQe_Qd0„ZRd1„ZSyejTƒeUZVWneWk reXZVnXd2„ZYdd3„ZZd4„Z[dS(6iÿÿÿÿN(tfloor(tsix(tMD5UnavailableError(t exceptions(t http_clientt HTTPHeaderscBseZRS((t__name__t __module__(((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyR"s(tquote(t urlencode(tunquote(t unquote_plus(turlparse(turlsplit(t urlunsplit(turljoin(t parse_qsl(tparse_qs(t HTTPResponse(tIOBase(t encodebytes(t formatdate(t zip_longestcCs|jjjjj|ƒdS(s„Set the timeout of the socket from an HTTPResponse. :param http_response: An instance of ``httplib.HTTPResponse`` N(t_fptfptrawt_sockt settimeout(t http_responsettimeout((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pytset_socket_timeout<scCstj|ƒdS(Ni(tinspecttgetfullargspec(tfunc((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pytaccepts_kwargsDscCs|S(N((tstencodingterrors((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pytensure_unicodeIssutf-8tstrictcCsLt|tƒr|j||ƒSt|tƒr2|Stdt|ƒƒ‚dS(Ns#Expected str or bytes, received %s.(t isinstancetstrtencodetbytest ValueErrorttype(R#R$R%((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyt ensure_bytesMs (tMessage(tizip(t izip_longest(t encodestringcBseZd„ZRS(ccs#x|jD]\}}|Vq WdS(N(t_headers(tselftfieldtvalue((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyt__iter__ks(RRR7(((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyRgscCs"|j|ƒ}t|ƒj|ƒS(N(R*R tdecode(R6R$t byte_string((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyt unquote_stroscCs|jjjj|ƒdS(s„Set the timeout of the socket from an HTTPResponse. :param http_response: An instance of ``httplib.HTTPResponse`` N(RRRR(RR((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyRyscCstj|ƒdS(Ni(Rt getargspec(R!((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyR"scCs&t|tjƒr|St|||ƒS(N(R(Rt text_typetunicode(R#R$R%((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyR&„scCsLt|tƒr|j||ƒSt|tƒr2|Stdt|ƒƒ‚dS(Ns%Expected str or unicode, received %s.(R(R=R*R)R,R-(R#R$R%((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyR.‰s (t OrderedDictiicCs&tjddddtjddƒdS(Ntignoretmessages$Certificate has no.*subjectAltName.*tcategorytmodules.*urllib3\.connection(twarningstfilterwarningsRtSecurityWarning(((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pytfilter_ssl_san_warnings¥s  cCsdS(N((((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyRF°scCs-tjddddtjddƒtƒdS(NR?R@s+A true SSLContext object is not available.*RARBs.*urllib3\.util\.ssl_(RCRDRtInsecurePlatformWarningRF(((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pytfilter_ssl_warnings¶s  cCs4|ƒ}x$|jƒD]\}}|||t ImportErrort ordereddictRRt simplejsontjsont SyntaxErrort XMLParseErrorRFtxml.etree.cElementTreetxmltetreet cElementTreet ParseErrorRHt classmethodRNRPRVRWR`tTrueR^R,RmRbRiRf(((s3/tmp/pip-install-usGedi/botocore/botocore/compat.pyts®