Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/importlib/
Upload File :
Current File : //usr/lib/python2.7/importlib/__init__.pyc

ó
—|_c@s+dZddlZd„Zdd„ZdS(s-Backport of importlib.import_module from 3.x.iÿÿÿÿNcCs’t|dƒstdƒ‚nt|ƒ}xSt|ddƒD]?}y|jdd|ƒ}Wq=tk
r{tdƒ‚q=Xq=Wd|| |fS(	s6Return the absolute name of the module to be imported.trindexs'package' not set to a stringiiÿÿÿÿt.is2attempted relative import beyond top-level packages%s.%s(thasattrt
ValueErrortlentxrangeR(tnametpackagetleveltdottx((s(/usr/lib/python2.7/importlib/__init__.pyt
_resolve_names
cCsƒ|jdƒrn|s$tdƒ‚nd}x(|D] }|dkrGPn|d7}q1Wt||||ƒ}nt|ƒtj|S(sÞImport a module.

    The 'package' argument is required when performing a relative import. It
    specifies the package to use as the anchor point from which to resolve the
    relative import to an absolute import.

    Rs/relative imports require the 'package' argumentii(t
startswitht	TypeErrorRt
__import__tsystmodules(RRRt	character((s(/usr/lib/python2.7/importlib/__init__.pyt
import_modules

(t__doc__RRtNoneR(((s(/usr/lib/python2.7/importlib/__init__.pyt<module>s