ó >ôac@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddl m Z ddl mZddlmZddlmZejeƒZe jr2ddlmZdejfd „ƒYZdd lmZdd lmZdd lmZdd lmZddlm Z ddlm!Z!ddlm"Z"ddlm#Z#ddlm$Z$ddlm%Z%ddl&m'Z'ddl(m)Z*ddl+m,Z,ddl-m.Z.ddl/m0Z0e*Z1e2Z2eZ3d„Z4d„Z5ddd„Z7ddd„Z8nXdd l9mZdd l9mZdd l9mZdd l9mZddl m Z ddl m!Z!ddl m"Z"ddl m#Z#ddl m$Z$ddl m%Z%ddl:m;Z;ddl<m.Z.e=Z1dd l/m>Z2dd!l/m?Z0ddl@m'Z'dd"l+mAZ,de;fd#„ƒYZdd$„Z3d%„Z4d&„Z5ddd'„Z7ddd(„Z8dd)lBmCZCyddlDjEjFZGWn#eHk rÕddlIjEjJZGnXeGjKZLddlMZMd*„ZNeOd+„ƒZPeOd,„ƒZQePe_PeQe_Qd-„ZRd.„ZSyejTƒeUZVWneWk rceXZVnXd/„ZYdd0„ZZd1„Z[d2„Z\ydd3l]m^Z^Wn!eHk rÂdd3lBm^Z^nXy8ddl_Z`ejajbd4d5ƒZcecjdƒd6k ZeWneHk reXZenXdS(7iÿÿÿÿN(tfloor(tsix(tMD5UnavailableError(ttzlocal(t exceptions(t http_clientt HTTPHeaderscBseZRS((t__name__t __module__(((s0/usr/lib/fence-agents/bundled/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((s0/usr/lib/fence-agents/bundled/botocore/compat.pytset_socket_timeout>scCstj|ƒdS(Ni(tinspecttgetfullargspec(tfunc((s0/usr/lib/fence-agents/bundled/botocore/compat.pytaccepts_kwargsFscCs|S(N((tstencodingterrors((s0/usr/lib/fence-agents/bundled/botocore/compat.pytensure_unicodeKssutf-8tstrictcCsLt|tƒr|j||ƒSt|tƒr2|Stdt|ƒƒ‚dS(Ns#Expected str or bytes, received %s.(t isinstancetstrtencodetbytest ValueErrorttype(R$R%R&((s0/usr/lib/fence-agents/bundled/botocore/compat.pyt ensure_bytesOs (tMessage(tizip(t izip_longest(t encodestringcBseZd„ZRS(ccs#x|jD]\}}|Vq WdS(N(t_headers(tselftfieldtvalue((s0/usr/lib/fence-agents/bundled/botocore/compat.pyt__iter__ms(RRR8(((s0/usr/lib/fence-agents/bundled/botocore/compat.pyRiscCs"|j|ƒ}t|ƒj|ƒS(N(R+R tdecode(R7R%t byte_string((s0/usr/lib/fence-agents/bundled/botocore/compat.pyt unquote_strqscCs|jjjj|ƒdS(s„Set the timeout of the socket from an HTTPResponse. :param http_response: An instance of ``httplib.HTTPResponse`` N(RRRR(RR((s0/usr/lib/fence-agents/bundled/botocore/compat.pyR{scCstj|ƒdS(Ni(R t getargspec(R"((s0/usr/lib/fence-agents/bundled/botocore/compat.pyR#ƒscCs&t|tjƒr|St|||ƒS(N(R)Rt text_typetunicode(R$R%R&((s0/usr/lib/fence-agents/bundled/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&((s0/usr/lib/fence-agents/bundled/botocore/compat.pyR/‹s (t OrderedDictcCs&tjddddtjddƒdS(Ntignoretmessages+A true SSLContext object is not available.*tcategorytmodules.*urllib3\.util\.ssl_(twarningstfilterwarningsRtInsecurePlatformWarning(((s0/usr/lib/fence-agents/bundled/botocore/compat.pytfilter_ssl_warningsŸs  cCs4|ƒ}x$|jƒD]\}}|||s¾                            ^