/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to brzlib/pyutils.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 12:41:27 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521124127-iv8etg0vwymyai6y
s/bzr/brz/ in apport config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""General Python convenience functions."""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
import sys
20
22
 
21
23
 
25
27
    This is usually much more convenient than dealing with ``__import__``
26
28
    directly::
27
29
 
28
 
        >>> doc = get_named_object('breezy.pyutils', 'get_named_object.__doc__')
 
30
        >>> doc = get_named_object('brzlib.pyutils', 'get_named_object.__doc__')
29
31
        >>> doc.splitlines()[0]
30
32
        'Get the Python object named by a given module and member name.'
31
33
 
69
71
    """
70
72
# +SKIP is not recognized by python2.4
71
73
# Typical use is::
72
 
#
 
74
73
75
#     >>> parent_mod, parent_member, final_attr = calc_parent_name(
74
76
#     ...     module_name, member_name) # doctest: +SKIP
75
77
#     >>> parent_obj = get_named_object(parent_mod, parent_member)