/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 bzrlib/pyutils.py

  • Committer: Andrew Bennetts
  • Date: 2011-06-09 07:38:32 UTC
  • mto: This revision was merged to the branch mainline in revision 5964.
  • Revision ID: andrew.bennetts@canonical.com-20110609073832-dt6oww033iexli4l
Fix thinko in wording regarding stacking invariants and revisions with multiple parents.

Show diffs side-by-side

added added

removed removed

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