Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/importlib/__init__.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^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(/sys/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(/sys/lib/python2.7/importlib/__init__.pyt
import_modules

(t__doc__RRtNoneR(((s(/sys/lib/python2.7/importlib/__init__.pyt<module>s	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.