PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  pYS*@sdZddlmZddlmZddlmZddlmZddlmZddlm Z m Z ddlm Z dd lm Z dd lm Z dd lmZd d lmZd dlZd dlZd dlZd dlZddZdddZdddZeddZddZddZddZGdddejZGdd d ejZGd!d"d"ejZ dS)#z-Utility code for constructing importers, etc.)abc)module_from_spec) _resolve_name)spec_from_loader) _find_spec) MAGIC_NUMBER_BACKCOMPAT_MAGIC_NUMBER)cache_from_source) decode_source)source_from_cache)spec_from_file_location)contextmanagerNcCsv|jds|S|s.tdj|d}x%|D]}|dkrNP|d7}q;Wt||d||S)z2Resolve a relative module name to an absolute one..z,{!r} is not a relative name (no leading dot)r rN) startswith ValueErrorformatr)namepackagelevel characterr#/opt/python35/lib/python3.5/util.py resolve_names    rc Cs|tjkrt||Stj|}|dkr9dSy |j}Wn*tk rrtdj|dYn&X|dkrtdj||SdS)aReturn the spec for the specified module. First, sys.modules is checked to see if the module was already imported. If so, then sys.modules[name].__spec__ is returned. If that happens to be set to None, then ValueError is raised. If the module is not in sys.modules, then sys.meta_path is searched for a suitable spec with the value of 'path' given to the finders. None is returned if no spec could be found. Dotted names do not have their parent packages implicitly imported. You will most likely need to explicitly import all parent packages in the proper order for a submodule to get the correct spec. Nz{}.__spec__ is not setz{}.__spec__ is None)sysmodulesr__spec__AttributeErrorrr)rpathmodulespecrrr_find_spec_from_path#s      r!c Cs|jdrt||n|}|tjkr|jdd}|rqt|ddg}t||jSt|dSn|tj|}|dkrdSy |j}Wn*t k rt dj |dYn&X|dkrt dj ||SdS)aReturn the spec for the specified module. First, sys.modules is checked to see if the module was already imported. If so, then sys.modules[name].__spec__ is returned. If that happens to be set to None, then ValueError is raised. If the module is not in sys.modules, then sys.meta_path is searched for a suitable spec with the value of 'path' given to the finders. None is returned if no spec could be found. If the name is for submodule (contains a dot), the parent module is automatically imported. The name and package arguments work the same as importlib.import_module(). In other words, relative module names (with leading dots) work. rr fromlist__path__Nz{}.__spec__ is not setz{}.__spec__ is None) rrrr rpartition __import__rr#rrrr)rrfullname parent_nameparentrr rrr find_specBs"$     r)ccs|tjk}tjj|}|sOtt|}d|_|tj|.set_package_wrapper) functoolswraps)r<r=r)r<r set_packages! r@cs%tjfdd}|S)zNSet __loader__ on the returned module. This function is deprecated. csMtjdtdd|||}t|dddkrI||_|S)Nz7The import system now takes care of this automatically.r1r2 __loader__)r4r5r6r7rA)selfr:r;r)r<rrset_loader_wrappers    z&set_loader..set_loader_wrapper)r>r?)r<rCr)r<r set_loaders!rDcs;tjdtddtjfdd}|S)a*Decorator to handle selecting the proper module for loaders. The decorated function is passed the module to use instead of the module name. The module passed in to the function is either from sys.modules if it already exists or is a new module. If the module is new, then __name__ is set the first argument to the method, __loader__ is set to self, and __package__ is set accordingly (if self.is_package() is defined) will be set before it is passed to the decorated function (if self.is_package() does not work for the module it will be set post-load). If an exception is raised and the decorator created the module it is subsequently removed from sys.modules. The decorator assumes that the decorated function takes the module name as the second argument. z7The import system now takes care of this automatically.r1r2cst|y}||_y|j|}Wnttfk rEYn)X|rX||_n|jdd|_||||SWdQRXdS)Nrr )r0rA is_package ImportErrorrr3r$)rBr&r:r;rrE)r<rrmodule_for_loader_wrappers  z4module_for_loader..module_for_loader_wrapper)r4r5r6r>r?)r<rGr)r<rmodule_for_loaders  !rHc@seZdZdZdS)_Modulez>A subclass of the module type to allow __class__ manipulation.N)r8 __module__ __qualname____doc__rrrrrIs rIc@s.eZdZdZddZddZdS) _LazyModulezKA subclass of the module type which triggers loading upon attribute access.c Cs t|_|jj}|jj}|j}i}x]|jD]O\}}||krb|||Construct a callable which returns the eager loader made lazy.cs||S)Nr)r:r;)clsrSrrsz$LazyLoader.factory..)_LazyLoader__check_eager_loader)rdrSr)rdrSrfactory s zLazyLoader.factorycCs|j|||_dS)N)rfrS)rBrSrrr__init__s zLazyLoader.__init__cCs t|jS)z9Create a module which can have its __class__ manipulated.)rIr)rBr rrr create_moduleszLazyLoader.create_modulecCs=|j|j_|j|_|jj|j_t|_dS)zMake the module load lazily.N)rSrrArPcopyrOrMrN)rBrrrrrTs zLazyLoader.exec_moduleN) r8rJrKrL staticmethodrf classmethodrgrhrirTrrrrras   ra)!rLr _bootstraprrrr_bootstrap_externalrrr r r r contextlibrr>rtypesr4rr!r)r0r@rDrH ModuleTyperIrMLoaderrarrrrs2     (   '.