equal
deleted
inserted
replaced
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 = [] |