~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Robey Pointer
  • Date: 2006-09-08 18:46:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060908184629-e3fc4c61ca21508c
pychecker is on crack; go back to using 'is None'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
 
55
55
def help(topic=None, outfile = None):
56
 
    if outfile == None:
 
56
    if outfile is None:
57
57
        outfile = sys.stdout
58
 
    if topic == None:
 
58
    if topic is None:
59
59
        outfile.write(global_help)
60
60
    elif topic == 'commands':
61
61
        help_commands(outfile = outfile)
102
102
 
103
103
    cmdname = str(cmdname)
104
104
 
105
 
    if outfile == None:
 
105
    if outfile is None:
106
106
        outfile = sys.stdout
107
107
 
108
108
    cmd_object = get_cmd_object(cmdname)
109
109
 
110
110
    doc = cmd_object.help()
111
 
    if doc == None:
 
111
    if doc is None:
112
112
        raise NotImplementedError("sorry, no detailed help yet for %r" % cmdname)
113
113
 
114
114
    print >>outfile, 'usage:', command_usage(cmd_object) 
142
142
                                 plugin_command_names,
143
143
                                 get_cmd_object)
144
144
 
145
 
    if outfile == None:
 
145
    if outfile is None:
146
146
        outfile = sys.stdout
147
147
 
148
148
    names = set()                       # to eliminate duplicates