-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/pyutils.pyc

ó
î:ïNc@@s>dZddlmZddlZdd„Zdd„ZdS(s%General Python convenience functions.i(tabsolute_importNcC@s|rW|jdƒ}|d }t|ii|ƒ}xF|D]}t||ƒ}q;Wn&t|tƒtƒgƒtj|}|S(sGet the Python object named by a given module and member name.

    This is usually much more convenient than dealing with ``__import__``
    directly::

        >>> doc = get_named_object('bzrlib.pyutils', 'get_named_object.__doc__')
        >>> doc.splitlines()[0]
        'Get the Python object named by a given module and member name.'

    :param module_name: a module name, as would be found in sys.modules if
        the module is already imported.  It may contain dots.  e.g. 'sys' or
        'os.path'.
    :param member_name: (optional) a name of an attribute in that module to
        return.  It may contain dots.  e.g. 'MyClass.some_method'.  If not
        given, the named module will be returned instead.
    :raises: ImportError or AttributeError.
    t.i(tsplitt
__import__tgetattrtglobalstlocalstsystmodules(tmodule_nametmember_namet
attr_chaint	from_listtobjtattr((s2/usr/lib/python2.7/dist-packages/bzrlib/pyutils.pytget_named_objects


cC@s¨|dk	rU|jddƒ}t|ƒdkr=|d|fS||d|dfSnO|jddƒ}t|ƒdkrtd|fƒ‚n|dd|dfSdS(s
Determine the 'parent' of a given dotted module name and (optional)
    member name.

    The idea is that ``getattr(parent_obj, final_attr)`` will equal
    get_named_object(module_name, member_name).

    :return: (module_name, member_name, final_attr) tuple.
    Riis(No parent object for top-level module %rN(tNonetrsplittlentAssertionError(R	R
t
split_name((s2/usr/lib/python2.7/dist-packages/bzrlib/pyutils.pytcalc_parent_name?s
(t__doc__t
__future__RRRRR(((s2/usr/lib/python2.7/dist-packages/bzrlib/pyutils.pyt<module>s'

Copyright © 2017 || Recoded By Mr.Bumblebee