mercurial/help.py
changeset 45679 65e2b64670b5
parent 45641 65cb924a1430
child 45942 89a2afe31e82
equal deleted inserted replaced
45678:bd2df58366b1 45679:65e2b64670b5
   711                 name, commands.table, strict=unknowncmd
   711                 name, commands.table, strict=unknowncmd
   712             )
   712             )
   713         except error.AmbiguousCommand as inst:
   713         except error.AmbiguousCommand as inst:
   714             # py3 fix: except vars can't be used outside the scope of the
   714             # py3 fix: except vars can't be used outside the scope of the
   715             # except block, nor can be used inside a lambda. python issue4617
   715             # except block, nor can be used inside a lambda. python issue4617
   716             prefix = inst.args[0]
   716             prefix = inst.prefix
   717             select = lambda c: cmdutil.parsealiases(c)[0].startswith(prefix)
   717             select = lambda c: cmdutil.parsealiases(c)[0].startswith(prefix)
   718             rst = helplist(select)
   718             rst = helplist(select)
   719             return rst
   719             return rst
   720 
   720 
   721         rst = []
   721         rst = []