z]c@sdZddlZyddlmZWn!ek rIddlmZnXyddlmZWn!ek rddlmZnXdZdej kodknZ dej kodknZ e re Z nddZddZdS(s0Compatibility module for Python 2 and 3 support.iN(tquote(t urlencodetto_bytestto_strturlquoteRiiiiiisutf-8cCs5t|dr1t|t r1|j|}n|S(s0Ensure that b is text in the specified encoding.tdecode(thasattrt isinstancetunicodeR(tbtencoding((s@/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/compat.pyR+scCs5t|dr1t|t r1|j|}n|S(s6Ensure that s is converted to bytes from the encoding.tencode(RRtbytesR (tsR ((s@/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/compat.pyR2s(RRRR(ii(ii(ii(ii(t__doc__tsyst urllib.parseRRt ImportErrorturllibRt__all__t version_infotPY3tPY2tstrRRR(((s@/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/compat.pyts&