/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/help.py

  • Committer: Vincent Ladeuil
  • Date: 2012-01-05 13:02:31 UTC
  • mto: This revision was merged to the branch mainline in revision 6434.
  • Revision ID: v.ladeuil+lp@free.fr-20120105130231-grtl31ovy72doqp9
Cleanup old blackbox tests and then some. Remove os.chdir() calls, caught a few bugs, make sure we don't leave file handles opened.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    help_topics,
32
32
    osutils,
33
33
    plugin,
34
 
    ui,
35
34
    utextwrap,
36
35
    )
37
36
 
39
38
def help(topic=None, outfile=None):
40
39
    """Write the help for the specific topic to outfile"""
41
40
    if outfile is None:
42
 
        outfile = ui.ui_factory.make_output_stream()
 
41
        outfile = sys.stdout
43
42
 
44
43
    indices = HelpIndices()
45
44
 
64
63
def help_commands(outfile=None):
65
64
    """List all commands"""
66
65
    if outfile is None:
67
 
        outfile = ui.ui_factory.make_output_stream()
 
66
        outfile = sys.stdout
68
67
    outfile.write(_help_commands_to_text('commands'))
69
68
 
70
69