tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
X\¬Qc@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((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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    TypeErrorR t
__import__tsystmodules(RRRt    character((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/importlib/__init__.pyt import_modules  
(t__doc__RR tNoneR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/importlib/__init__.pyt<module>s