/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: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

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('bzrlib.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)