mercurial/help.py
changeset 42057 566daffc607d
parent 42041 3e47d1ec9da5
child 42393 a84564b1a0b1
equal deleted inserted replaced
42056:4950ae4d034f 42057:566daffc607d
   746         if mod:
   746         if mod:
   747             try:
   747             try:
   748                 ct = mod.cmdtable
   748                 ct = mod.cmdtable
   749             except AttributeError:
   749             except AttributeError:
   750                 ct = {}
   750                 ct = {}
   751             modcmds = set([c.partition('|')[0] for c in ct])
   751             modcmds = {c.partition('|')[0] for c in ct}
   752             rst.extend(helplist(modcmds.__contains__))
   752             rst.extend(helplist(modcmds.__contains__))
   753         else:
   753         else:
   754             rst.append(_("(use 'hg help extensions' for information on enabling"
   754             rst.append(_("(use 'hg help extensions' for information on enabling"
   755                        " extensions)\n"))
   755                        " extensions)\n"))
   756         return rst
   756         return rst