/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: John Arbash Meinel
  • Date: 2011-04-22 14:12:22 UTC
  • mfrom: (5809 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5836.
  • Revision ID: john@arbash-meinel.com-20110422141222-nx2j0hbkihcb8j16
Merge newer bzr.dev and resolve conflicts.
Try to write some documentation about how the _dirblock_state works.
Fix up the tests so that they pass again.

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)