~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Robert Collins
  • Date: 2010-06-21 04:16:16 UTC
  • mto: This revision was merged to the branch mainline in revision 5310.
  • Revision ID: robertc@robertcollins.net-20100621041616-w3unifc8ua57kppc
More NEWS about the bzrlib.initialize contract change, and typographical error fixes for __init__.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
# context of an operation than to look it up directly, but when that is too
138
138
# hard, it is better to use this variable than to make a branch new global
139
139
# variable.
140
 
# If using this variable my looking it up (because it can't be easily obtained)
 
140
# If using this variable by looking it up (because it can't be easily obtained)
141
141
# it is important to store the reference you get, rather than looking it up
142
142
# repeatedly; that way your code will behave properly in the bzrlib test suite
143
143
# and from programs that do use multiple library contexts.
232
232
    :param stdin, stdout, stderr: If provided, use these for terminal IO;
233
233
        otherwise use the files in `sys`.
234
234
    :return: A context manager for the use of bzrlib. The __enter__ method of
235
 
        this context needs to be alled before it takes effect, and the __exit__
 
235
        this context needs to be called before it takes effect, and the __exit__
236
236
        should be called by the caller before exiting their process or
237
237
        otherwise stopping use of bzrlib. Advanced callers can use
238
238
        BzrLibraryState directly.