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

  • Committer: Breezy landing bot
  • Author(s): Colin Watson
  • Date: 2020-11-16 21:47:08 UTC
  • mfrom: (7521.1.1 remove-lp-workaround)
  • Revision ID: breezy.the.bot@gmail.com-20201116214708-jos209mgxi41oy15
Remove breezy.git workaround for bazaar.launchpad.net.

Merged from https://code.launchpad.net/~cjwatson/brz/remove-lp-workaround/+merge/393710

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