/usr/local/lib/python3.6/site-packages/distlib/__pycache__
NameSizeModeActions
compat.cpython-36.pyc315800644editdlrm
database.cpython-36.pyc430950644editdlrm
index.cpython-36.pyc170910644editdlrm
locators.cpython-36.pyc385820644editdlrm
manifest.cpython-36.pyc103070644editdlrm
markers.cpython-36.pyc52970644editdlrm
metadata.cpython-36.pyc276730644editdlrm
resources.cpython-36.pyc108460644editdlrm
scripts.cpython-36.pyc115000644editdlrm
util.cpython-36.pyc518470644editdlrm
version.cpython-36.pyc208310644editdlrm
wheel.cpython-36.pyc277940644editdlrm
__init__.cpython-36.pyc9970644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/distlib/__pycache__/compat.cpython-36.pyc (31580B)
3 0Dg@sddlmZddlZddlZddlZddlZy ddlZWnek rPdZYnXejddkrnddl m Z e fZ e Z ddlmZddlZddlZddlmZmZmZmZmZddlmZmZmZmZm Z m!Z!m"Z"dd Zddl#Z#dd l#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,er"dd l#m-Z-ddl.Z.ddl/Z/ddl0Z1dd l2m2Z2ddl3Z3e4Z4dd l5m6Z7ddl5m8Z9nddl:m Z e;fZ e;Z ddl:mm%Z%mZm$Z$mZm Z m(Z(m)Z)m*Z*m+Z+m,Z,er dd l>m-Z-ddl?m'Z'm&Z&m!Z!ddl@jAZ.ddl>jBZ#ddlCjAZ/ddl1Z1dd lDm2Z2ddlEjFZ3eGZ4ddl5m9Z9e7Z7yddlmHZHmIZIWn8ek rGdddeJZId`ddZKddZHYnXyddlmLZMWn&ek rGdddeNZMYnXyddlmOZOWn,ek r0ejPejQBdfd d!ZOYnXdd"lRmSZTeUeTd#rPeTZSn,dd$lRmVZWGd%d&d&eWZVGd'd(d(eTZSydd)lXmYZYWnek rd*d+ZYYnXddlZZZye[Z[Wn*e\k rdd,l]m^Z^d-d.Z[YnXyej_Z_ej`Z`WnHeak r@ejbpd/Zcecd0kr(d1Zdnd2Zdd3d4Z_d5d6Z`YnXydd7lemfZfWn@ek rdd8lgmhZhmiZiejjd9Zkd:d;ZldlmmnZnWn"ek rdd>lomnZnYnXejdd?dakre2jpZpn ddAlmmpZpyddBlqmrZrWndek rfddClqmsZsyddDltmuZvWn ek rPdbdFdGZvYnXGdHdIdIesZrYnXyddJlwmxZxWn ek rdcdKdLZxYnXyddMlqmyZyWnek r4yddNlzm{Z|Wn"ek rddNl}m{Z|YnXyddOl~mZmZmZWnek rYnXGdPdQdQeZyYnXyddRlmZmZWnvek rejjdSejZdTdUZGdVdWdWeZdddXdYZGdZd[d[eZGd\d]d]eZGd^d_d_eNZYnXdS)e)absolute_importN)StringIO)FileType)urlparse urlunparseurljoinurlsplit urlunsplit) urlretrievequoteunquote url2pathname pathname2urlContentTooShortError splittypecCst|tr|jd}t|S)Nzutf-8) isinstanceunicodeencode_quote)sr8/usr/local/lib/python3.6/site-packages/distlib/compat.pyr s  r ) RequesturlopenURLError HTTPErrorHTTPBasicAuthHandlerHTTPPasswordMgr HTTPHandlerHTTPRedirectHandler build_opener) HTTPSHandler) HTMLParser)ifilter) ifilterfalse) TextIOWrapper)rrrr r r r r) rr rrrrrrr r!)rrr) filterfalse)match_hostnameCertificateErrorc@s eZdZdS)r)N)__name__ __module__ __qualname__rrrrr)]sr)c Csg}|s dS|jd}|d|dd}}|jd}||krNtdt||sb|j|jkS|dkrv|jdn>|jd s|jd r|jtj|n|jtj|j d d x|D]}|jtj|qWtj d d j |dtj } | j |S)zpMatching according to RFC 6125, section 6.4.3 http://tools.ietf.org/html/rfc6125#section-6.4.3 F.rr-N*z,too many wildcards in certificate DNS name: z[^.]+zxn--z\*z[^.]*z\Az\.z\Z)splitcountr)reprlowerappend startswithreescapereplacecompilejoin IGNORECASEmatch) dnhostname max_wildcardspatspartsleftmost remainder wildcardsfragpatrrr_dnsname_match`s(    rGcCs|s tdg}|jdf}x0|D](\}}|dkr"t||r@dS|j|q"W|sxF|jdfD]6}x0|D](\}}|dkrjt||rdS|j|qjWq`Wt|dkrtd|d jtt|fn*t|dkrtd ||d fntd dS) a=Verify that *cert* (in decoded format as returned by SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125 rules are followed, but IP addresses are not accepted for *hostname*. CertificateError is raised on failure. On success, the function returns nothing. ztempty or no certificate, match_hostname needs a SSL socket or SSL context with either CERT_OPTIONAL or CERT_REQUIREDsubjectAltNameDNSNsubject commonNamer-z&hostname %r doesn't match either of %sz, zhostname %r doesn't match %rrz=no appropriate commonName or subjectAltName fields were found) ValueErrorgetrGr4lenr)r:mapr2)certr>dnsnamessankeyvaluesubrrrr(s.     r()SimpleNamespacec@seZdZdZddZdS) ContainerzR A generic container for when multiple values need to be returned cKs|jj|dS)N)__dict__update)selfkwargsrrr__init__szContainer.__init__N)r*r+r,__doc__r\rrrrrWsrW)whichc s"dd}tjjr&||r"SdS|dkr>tjjdtj}|sFdS|jtj}tj dkrtj |krt|j dtj tjjddjtj}t fd d |Drg}q‡fd d |D}ng}t }xT|D]L}tjj|}||kr|j|x(|D] } tjj|| } || |r| SqWqWdS) aKGiven a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file. `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result of os.environ.get("PATH"), or can be overridden with a custom search path. cSs&tjj|o$tj||o$tjj| S)N)ospathexistsaccessisdir)fnmoderrr _access_checkszwhich.._access_checkNPATHwin32rPATHEXTc3s |]}jj|jVqdS)N)r3endswith).0ext)cmdrr szwhich..csg|] }|qSrr)rlrm)rnrr szwhich..)r_r`dirnameenvironrMdefpathr0pathsepsysplatformcurdirinsertanysetnormcaseaddr:) rnrer`rfpathextfilesseendirnormdirthefilenamer)rnrr^s8           r^)ZipFile __enter__) ZipExtFilec@s$eZdZddZddZddZdS)rcCs|jj|jdS)N)rXrY)rZbaserrrr\szZipExtFile.__init__cCs|S)Nr)rZrrrrszZipExtFile.__enter__cGs |jdS)N)close)rZexc_inforrr__exit__szZipExtFile.__exit__N)r*r+r,r\rrrrrrrsrc@s$eZdZddZddZddZdS)rcCs|S)Nr)rZrrrr#szZipFile.__enter__cGs |jdS)N)r)rZrrrrr&szZipFile.__exit__cOstj|f||}t|S)N) BaseZipFileopenr)rZargsr[rrrrr*sz ZipFile.openN)r*r+r,rrrrrrrr!sr)python_implementationcCs0dtjkrdStjdkrdStjjdr,dSdS)z6Return a string identifying the Python implementation.PyPyjavaJython IronPythonCPython)ruversionr_rr5rrrrr3s   r)CallablecCs t|tS)N)rr)objrrrcallableEsrzutf-8mbcsstrictsurrogateescapecCs:t|tr|St|tr$|jttStdt|jdS)Nzexpect bytes or str, not %s) rbytes text_typer _fsencoding _fserrors TypeErrortyper*)filenamerrrfsencodeYs    rcCs:t|tr|St|tr$|jttStdt|jdS)Nzexpect bytes or str, not %s) rrrdecoderrrrr*)rrrrfsdecodebs    r)detect_encoding)BOM_UTF8lookupzcoding[:=]\s*([-\w.]+)cCsH|ddjjdd}|dks*|jdr.dS|d ks@|jdrDdS|S)z(Imitates get_normal_name in tokenizer.c.N _-zutf-8zutf-8-latin-1 iso-8859-1 iso-latin-1latin-1- iso-8859-1- iso-latin-1-)rrr)rrr)r3r8r5)orig_encencrrr_get_normal_namess rc sy jjWntk r$dYnXdd}d}fdd}fdd}|}|jtrpd|d d}d }|s||gfS||}|r||gfS|}|s||gfS||}|r|||gfS|||gfS) a? The detect_encoding() function is used to detect the encoding that should be used to decode a Python source file. It requires one argument, readline, in the same way as the tokenize() generator. It will call readline a maximum of twice, and return the encoding used (as a string) and a list of any lines (left as bytes) it has read in. It detects the encoding from the presence of a utf-8 bom or an encoding cookie as specified in pep-0263. If both a bom and a cookie are present, but disagree, a SyntaxError will be raised. If the encoding cookie is an invalid charset, raise a SyntaxError. Note that if a utf-8 bom is found, 'utf-8-sig' is returned. If no encoding is specified, then the default of 'utf-8' will be returned. NFzutf-8c s yStk rdSXdS)N) StopIterationr)readlinerr read_or_stopsz%detect_encoding..read_or_stopcsy|jd}Wn4tk rBd}dk r6dj|}t|YnXtj|}|sVdSt|d}y t|}Wn:tk rdkrd|}n dj|}t|YnXr|j dkr؈dkrd}n dj}t||d 7}|S) Nzutf-8z'invalid or missing encoding declarationz {} for {!r}rzunknown encoding: zunknown encoding for {!r}: {}zencoding problem: utf-8z encoding problem for {!r}: utf-8z-sig) rUnicodeDecodeErrorformat SyntaxError cookie_refindallrr LookupErrorr)line line_stringmsgmatchesencodingcodec) bom_foundrrr find_cookies8      z$detect_encoding..find_cookieTrz utf-8-sig)__self__rAttributeErrorr5r)rrdefaultrrfirstsecondr)rrrrr~s4   '     r)r7)unescape)ChainMap)MutableMapping)recursive_repr...csfdd}|S)zm Decorator to make a repr function return fillvalue for a recursive call csLtfdd}td|_td|_td|_tdi|_|S)Nc sBt|tf}|krSj|z |}Wdj|X|S)N)id get_identr|discard)rZrSresult) fillvalue repr_running user_functionrrwrappers   z=_recursive_repr..decorating_function..wrapperr+r]r*__annotations__)rzgetattrr+r]r*r)rr)r)rrrdecorating_functions    z,_recursive_repr..decorating_functionr)rrr)rr_recursive_reprs rc@seZdZdZddZddZddZd'd d Zd d Zd dZ ddZ ddZ e ddZ eddZddZeZddZeddZddZdd Zd!d"Zd#d$Zd%d&ZdS)(ra A ChainMap groups multiple dicts (or other mappings) together to create a single, updateable view. The underlying mappings are stored in a list. That list is public and can accessed or updated using the *maps* attribute. There is no other state. Lookups search the underlying mappings successively until a key is found. In contrast, writes, updates, and deletions only operate on the first mapping. cGst|p ig|_dS)zInitialize a ChainMap by setting *maps* to the given mappings. If no mappings are provided, a single empty dictionary is used. N)listmaps)rZrrrrr\szChainMap.__init__cCs t|dS)N)KeyError)rZrSrrr __missing__ szChainMap.__missing__c Cs8x,|jD]"}y||Stk r(YqXqW|j|S)N)rrr)rZrSmappingrrr __getitem__#s  zChainMap.__getitem__NcCs||kr||S|S)Nr)rZrSrrrrrM-sz ChainMap.getcCsttj|jS)N)rNrzunionr)rZrrr__len__0szChainMap.__len__cCsttj|jS)N)iterrzrr)rZrrr__iter__4szChainMap.__iter__cstfdd|jDS)Nc3s|]}|kVqdS)Nr)rlm)rSrrro8sz(ChainMap.__contains__..)ryr)rZrSr)rSr __contains__7szChainMap.__contains__cCs t|jS)N)ryr)rZrrr__bool__:szChainMap.__bool__cCsdj|djtt|jS)Nz{0.__class__.__name__}({1})z, )rr:rOr2r)rZrrr__repr__=szChainMap.__repr__cGs|tj|f|S)z?Create a ChainMap with a single dict created from the iterable.)dictfromkeys)clsiterablerrrrrBszChainMap.fromkeyscCs$|j|jdjf|jddS)zHNew ChainMap or subclass with a new copy of maps[0] and refs to maps[1:]rr-N) __class__rcopy)rZrrrrGsz ChainMap.copycCs|jif|jS)z;New ChainMap with a new dict followed by all previous maps.)rr)rZrrr new_childMszChainMap.new_childcCs|j|jddS)zNew ChainMap from maps[1:].r-N)rr)rZrrrparentsQszChainMap.parentscCs||jd|<dS)Nr)r)rZrSrTrrr __setitem__VszChainMap.__setitem__c Cs8y|jd|=Wn"tk r2tdj|YnXdS)Nrz(Key not found in the first mapping: {!r})rrr)rZrSrrr __delitem__Ys zChainMap.__delitem__c Cs0y|jdjStk r*tdYnXdS)zPRemove and return an item pair from maps[0]. Raise KeyError is maps[0] is empty.rz#No keys found in the first mapping.N)rpopitemr)rZrrrr`szChainMap.popitemc Gs>y|jdj|f|Stk r8tdj|YnXdS)zWRemove *key* from maps[0] and return its value. Raise KeyError if *key* not in maps[0].rz(Key not found in the first mapping: {!r}N)rpoprr)rZrSrrrrrgs z ChainMap.popcCs|jdjdS)z'Clear maps[0], leaving maps[1:] intact.rN)rclear)rZrrrroszChainMap.clear)N)r*r+r,r]r\rrrMrrrrrr classmethodrr__copy__rpropertyrrrrrrrrrrr s(    r)cache_from_sourcecCs0|jdst|dkrd}|r$d}nd}||S)Nz.pyTco)rkAssertionError)r`debug_overridesuffixrrrrxsr) OrderedDict)r)KeysView ValuesView ItemsViewc@seZdZdZddZejfddZejfddZdd Zd d Z d d Z d6ddZ ddZ ddZ ddZddZddZddZddZeZeZefdd Zd7d"d#Zd8d$d%Zd&d'Zd(d)Zed9d*d+Zd,d-Zd.d/Zd0d1Zd2d3Z d4d5Z!d!S):rz)Dictionary that remembers insertion orderc Osnt|dkrtdt|y |jWn6tk r\g|_}||dg|dd<i|_YnX|j||dS)zInitialize an ordered dictionary. Signature is the same as for regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary. r-z$expected at most 1 arguments, got %dN)rNr_OrderedDict__rootr_OrderedDict__map_OrderedDict__update)rZrkwdsrootrrrr\s     zOrderedDict.__init__cCsF||kr6|j}|d}|||g|d<|d<|j|<||||dS)z!od.__setitem__(i, y) <==> od[i]=yrr-N)rr)rZrSrTZ dict_setitemr lastrrrrs  zOrderedDict.__setitem__cCs0||||jj|\}}}||d<||d<dS)z od.__delitem__(y) <==> del od[y]r-rN)rr)rZrSZ dict_delitem link_prev link_nextrrrrs zOrderedDict.__delitem__ccs2|j}|d}x||k r,|dV|d}qWdS)zod.__iter__() <==> iter(od)r-rN)r)rZr currrrrrs   zOrderedDict.__iter__ccs2|j}|d}x||k r,|dV|d}qWdS)z#od.__reversed__() <==> reversed(od)rrN)r)rZr rrrr __reversed__s   zOrderedDict.__reversed__c CshyDx|jjD]}|dd=qW|j}||dg|dd<|jjWntk rXYnXtj|dS)z.od.clear() -> None. Remove all items from od.N)r itervaluesrrrr)rZnoder rrrrszOrderedDict.clearTcCs||s td|j}|r8|d}|d}||d<||d<n |d}|d}||d<||d<|d}|j|=tj||}||fS)zod.popitem() -> (k, v), return and remove a (key, value) pair. Pairs are returned in LIFO order if last is true or FIFO order if false. zdictionary is emptyrr-r)rrrrr)rZr r linkr r rSrTrrrrs   zOrderedDict.popitemcCst|S)zod.keys() -> list of keys in od)r)rZrrrkeysszOrderedDict.keyscsfddDS)z#od.values() -> list of values in odcsg|] }|qSrr)rlrS)rZrrrpsz&OrderedDict.values..r)rZr)rZrvaluesszOrderedDict.valuescsfddDS)z.od.items() -> list of (key, value) pairs in odcsg|]}||fqSrr)rlrS)rZrrrpsz%OrderedDict.items..r)rZr)rZritemsszOrderedDict.itemscCst|S)z0od.iterkeys() -> an iterator over the keys in od)r)rZrrriterkeysszOrderedDict.iterkeysccsx|D]}||VqWdS)z2od.itervalues -> an iterator over the values in odNr)rZkrrrr s zOrderedDict.itervaluesccs x|D]}|||fVqWdS)z=od.iteritems -> an iterator over the (key, value) items in odNr)rZrrrr iteritemss zOrderedDict.iteritemscOst|dkr tdt|fn |s,td|d}f}t|dkrL|d}t|trrx^|D]}||||<q\WnDt|drx8|jD]}||||<qWnx|D]\}}|||<qWx|jD]\}}|||<qWdS)aod.update(E, **F) -> None. Update od from dict/iterable E and F. If E is a dict instance, does: for k in E: od[k] = E[k] If E has a .keys() method, does: for k in E.keys(): od[k] = E[k] Or if E is an iterable of items, does: for k, v in E: od[k] = v In either case, this is followed by: for k, v in F.items(): od[k] = v rz8update() takes at most 2 positional arguments (%d given)z,update() takes at least 1 argument (0 given)rr-rN)rNrrrhasattrrr)rr rZotherrSrTrrrrYs&      zOrderedDict.updatecCs0||kr||}||=|S||jkr,t||S)zod.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised. )_OrderedDict__markerr)rZrSrrrrrr6s zOrderedDict.popNcCs||kr||S|||<|S)zDod.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in odr)rZrSrrrr setdefaultCszOrderedDict.setdefaultc Cs^|si}t|tf}||kr"dSd||<z&|s>d|jjfSd|jj|jfS||=XdS)zod.__repr__() <==> repr(od)z...r-z%s()z%s(%r)N)r _get_identrr*r)rZZ _repr_runningZcall_keyrrrrJszOrderedDict.__repr__cs\fddD}tj}xttD]}|j|dq*W|rPj|f|fSj|ffS)z%Return state information for picklingcsg|]}||gqSrr)rlr)rZrrrp[sz*OrderedDict.__reduce__..N)varsrrrr)rZr inst_dictrr)rZr __reduce__Ys zOrderedDict.__reduce__cCs |j|S)z!od.copy() -> a shallow copy of od)r)rZrrrrcszOrderedDict.copycCs |}x|D] }|||<q W|S)zOD.fromkeys(S[, v]) -> New ordered dictionary with keys from S and values equal to v (which defaults to None). r)rrrTdrSrrrrgs  zOrderedDict.fromkeyscCs6t|tr*t|t|ko(|j|jkStj||S)zod.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive while comparison to a regular mapping is order-insensitive. )rrrNrr__eq__)rZrrrrr"rs zOrderedDict.__eq__cCs ||k S)Nr)rZrrrr__ne__|szOrderedDict.__ne__cCst|S)z@od.viewkeys() -> a set-like object providing a view on od's keys)r)rZrrrviewkeysszOrderedDict.viewkeyscCst|S)z an object providing a view on od's values)r)rZrrr viewvaluesszOrderedDict.viewvaluescCst|S)zBod.viewitems() -> a set-like object providing a view on od's items)r)rZrrr viewitemsszOrderedDict.viewitems)T)N)N)N)"r*r+r,r]r\rrrrrrrrrrrrrrYrobjectrrrrr rrrr"r#r$r%r&rrrrrs:         r)BaseConfigurator valid_identz^[a-z_][a-z0-9_]*$cCstj|}|std|dS)Nz!Not a valid Python identifier: %rT) IDENTIFIERr<rL)rrrrrr)s  r)c@s"eZdZdZddZdddZdS)ConvertingDictz A converting dictionary wrapper.cCsJtj||}|jj|}||k rF|||<t|tttfkrF||_||_ |S)N) rr configuratorconvertrr+ConvertingListConvertingTupleparentrS)rZrSrTrrrrrs   zConvertingDict.__getitem__NcCsLtj|||}|jj|}||k rH|||<t|tttfkrH||_||_ |S)N) rrMr,r-rr+r.r/r0rS)rZrSrrTrrrrrMs  zConvertingDict.get)N)r*r+r,r]rrMrrrrr+s r+cCsDtj|||}|jj|}||k r@t|tttfkr@||_||_ |S)N) rrr,r-rr+r.r/r0rS)rZrSrrTrrrrrs  rc@s"eZdZdZddZd ddZdS) r.zA converting list wrapper.cCsJtj||}|jj|}||k rF|||<t|tttfkrF||_||_ |S)N) rrr,r-rr+r.r/r0rS)rZrSrTrrrrrs   zConvertingList.__getitem__r-cCs<tj||}|jj|}||k r8t|tttfkr8||_|S)N) rrr,r-rr+r.r/r0)rZidxrTrrrrrs   zConvertingList.popN)r2)r*r+r,r]rrrrrrr.s r.c@seZdZdZddZdS)r/zA converting tuple wrapper.cCsBtj||}|jj|}||k r>t|tttfkr>||_||_ |S)N) tuplerr,r-rr+r.r/r0rS)rZrSrTrrrrrs   zConvertingTuple.__getitem__N)r*r+r,r]rrrrrr/sr/c@seZdZdZejdZejdZejdZejdZ ejdZ ddd Z e e Zd d Zd d ZddZddZddZddZddZdS)r(zQ The configurator base class which defines some useful defaults. z%^(?P[a-z]+)://(?P.*)$z ^\s*(\w+)\s*z^\.\s*(\w+)\s*z^\[\s*(\w+)\s*\]\s*z^\d+$ ext_convert cfg_convert)rmcfgcCst||_||j_dS)N)r+configr,)rZr7rrrr\s zBaseConfigurator.__init__c Cs|jd}|jd}y`|j|}xP|D]H}|d|7}yt||}Wq&tk rl|j|t||}Yq&Xq&W|Stk rtjdd\}}td||f}|||_ |_ |YnXdS)zl Resolve strings to objects using standard import and attribute syntax. r.rr-NzCannot resolve %r: %s) r0rimporterrr ImportErrorrurrL __cause__ __traceback__) rZrrusedfoundrEetbvrrrresolves"      zBaseConfigurator.resolvecCs |j|S)z*Default converter for the ext:// protocol.)rA)rZrTrrrr4szBaseConfigurator.ext_convertc Cs|}|jj|}|dkr&td|n||jd}|j|jd}x|r|jj|}|rp||jd}nd|jj|}|r|jd}|jj|s||}n2yt |}||}Wnt k r||}YnX|r||jd}qJtd||fqJW|S)z*Default converter for the cfg:// protocol.NzUnable to convert %rrzUnable to convert %r at %r) WORD_PATTERNr<rLendr7groups DOT_PATTERN INDEX_PATTERN DIGIT_PATTERNintr)rZrTrestrr!r1nrrrr5s4       zBaseConfigurator.cfg_convertcCst|t r&t|tr&t|}||_nt|t rLt|trLt|}||_n|t|t rrt|trrt|}||_nVt|tr|j j |}|r|j }|d}|j j |d}|r|d}t||}||}|S)z Convert values to an appropriate type. dicts, lists and tuples are replaced by their converting alternatives. Strings are checked to see if they have a conversion format and are converted if they do. prefixNr)rr+rr,r.rr/r3 string_typesCONVERT_PATTERNr< groupdictvalue_convertersrMr)rZrTrr!rK converterrrrrr-Bs,   zBaseConfigurator.convertcsrjd}t|s|j|}jdd}tfddD}|f|}|rnx |jD]\}}t|||qVW|S)z1Configure an object with a user-supplied factory.z()r.Ncs g|]}t|r||fqSr)r))rlr)r7rrrpfsz5BaseConfigurator.configure_custom..)rrrArrsetattr)rZr7rpropsr[rrrTr)r7rconfigure_custom_s    z!BaseConfigurator.configure_customcCst|trt|}|S)z0Utility function which converts lists to tuples.)rrr3)rZrTrrras_tuplems zBaseConfigurator.as_tupleN)r*r+r,r]r6r9rMrBrErFrGrO staticmethod __import__r8r\rAr4r5r-rSrTrrrrr(s      #r()r-)rr)r)N)N) __future__rr_r6shutilrusslr9 version_infor basestringrLrrtypesr file_type __builtin__builtins ConfigParser configparserrrrr r urllibr r rr rrrrurllib2rrrrrrrr r!r"httplib xmlrpclibQueuequeuer#htmlentitydefs raw_input itertoolsr$filterr%r'iostrr& urllib.parseurllib.request urllib.error http.clientclientrequest xmlrpc.client html.parser html.entitiesentitiesinputr(r)rLrGrVrWr'r^F_OKX_OKzipfilerrrrZBaseZipExtFilervr sysconfigr NameErrorcollections.abcrrrrgetfilesystemencodingrrtokenizercodecsrrr9rrhtmlr7cgir collectionsrrreprlibrrimportlib.utilrrthreadrr dummy_thread_abcollrrrrlogging.configr(r)Ir*r+rrr.r3r/rrrrs     $,     (0        1+ A            ^   h |