~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/pyutils.py

  • Committer: Vincent Ladeuil
  • Date: 2010-10-15 12:35:00 UTC
  • mto: This revision was merged to the branch mainline in revision 5502.
  • Revision ID: v.ladeuil+lp@free.fr-20101015123500-iyqj7e0r62ie6qfy
Unbreak pqm by commenting out the bogus use of doctest +SKIP not supported by python2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    """Determine the 'parent' of a given dotted module name and (optional)
64
64
    member name.
65
65
 
66
 
    Typical use is::
67
 
 
68
 
        >>> parent_mod, parent_member, final_attr = calc_parent_name(
69
 
        ...     module_name, member_name) # doctest: +SKIP
70
 
        >>> parent_obj = get_named_object(parent_mod, parent_member)
71
 
        ... # doctest: +SKIP
72
 
 
73
66
    The idea is that ``getattr(parent_obj, final_attr)`` will equal
74
67
    get_named_object(module_name, member_name).
75
68
 
76
69
    :return: (module_name, member_name, final_attr) tuple.
77
70
    """
 
71
# +SKIP is not recognized by python2.4
 
72
# Typical use is::
 
73
 
74
#     >>> parent_mod, parent_member, final_attr = calc_parent_name(
 
75
#     ...     module_name, member_name) # doctest: +SKIP
 
76
#     >>> parent_obj = get_named_object(parent_mod, parent_member)
 
77
#     ... # doctest: +SKIP
78
78
    if member_name is not None:
79
79
        split_name = member_name.rsplit('.', 1)
80
80
        if len(split_name) == 1: