ó ½z]c@södZddlmZdefd„ƒYZdefd„ƒYZdefd„ƒYZd efd „ƒYZd efd „ƒYZd efd„ƒYZ defd„ƒYZ defd„ƒYZ defd„ƒYZ defd„ƒYZ dS(sExceptions module for rfc3986.i(tcompattRFC3986ExceptioncBseZdZRS(s-Base class for all rfc3986 exception classes.(t__name__t __module__t__doc__(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyRstInvalidAuthoritycBseZdZd„ZRS(s/Exception when the authority string is invalid.cCs,tt|ƒjdjtj|ƒƒƒdS(s4Initialize the exception with the invalid authority.u!The authority ({0}) is not valid.N(tsuperRt__init__tformatRtto_str(tselft authority((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyRs(RRRR(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR st InvalidPortcBseZdZd„ZRS(s#Exception when the port is invalid.cCs#tt|ƒjdj|ƒƒdS(s/Initialize the exception with the invalid port.sThe port ("{0}") is not valid.N(RR RR(R tport((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyRs(RRRR(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR stResolutionErrorcBseZdZd„ZRS(s1Exception to indicate a failure to resolve a URI.cCs)tt|ƒjdj|jƒƒƒdS(s)Initialize the error with the failed URI.s{0} is not an absolute URI.N(RRRRtunsplit(R turi((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR#s(RRRR(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR stValidationErrorcBseZdZRS(s,Exception raised during Validation of a URI.(RRR(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR)stMissingComponentErrorcBseZdZd„ZRS(s6Exception raised when a required component is missing.cGszd}t|ƒdkr!d}n||_t|ƒ|_dj|jƒ}tt|ƒjdj||ƒ||jƒdS(s5Initialize the error with the missing component name.twasitweres, s{} {} required but missingN( tlenRtsortedt componentstjoinRRRR(R Rtcomponent_namestverbR((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR2s  (RRRR(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR/stUnpermittedComponentErrorcBseZdZd„ZRS(s;Exception raised when a component has an unpermitted value.cCsYtt|ƒjdj|tt|ƒƒ|ƒ|||ƒ||_||_||_dS(s4Initialize the error with the unpermitted component.s.{} was required to be one of {!r} but was {!r}N( RRRRtlistRtcomponent_nametcomponent_valuetallowed_values(R RRR((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyREs  (RRRR(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyRBstPasswordForbiddencBseZdZd„ZRS(sCException raised when a URL has a password in the userinfo section.csJtˆd‡fd†ƒ}tt|ƒjdj|ƒƒƒˆ|_dS(s9Initialize the error with the URI that failed validation.RcsˆS(N(((R(sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pytYts4"{}" contained a password when validation forbade itN(tgetattrRR RRR(R RR((RsD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyRWs  (RRRR(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR TstInvalidComponentsErrorcBseZdZd„ZRS(s9Exception raised when one or more components are invalid.cGszd}t|ƒdkr!d}n||_t|ƒ|_dj|jƒ}tt|ƒjdj||ƒ||jƒdS(s8Initialize the error with the invalid component name(s).RiRs, s{} {} found to be invalidN( RRRRRRR$RR(R RRRR((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyRes  (RRRR(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR$bstMissingDependencyErrorcBseZdZRS(sBException raised when an IRI is encoded without the 'idna' module.(RRR(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyR%usN(RR"Rt ExceptionRRR RRRRR R$R%(((sD/tmp/pip-build-kBFYxq/urllib3/urllib3/packages/rfc3986/exceptions.pyts