changeset 32528 | 9f56d462634c |
parent 32434 | 69c864149d69 |
child 32538 | 2dd8d4108249 |
32527:47ce079b1afa | 32528:9f56d462634c |
---|---|
447 |
447 |
448 if cmd in choice: |
448 if cmd in choice: |
449 return choice[cmd] |
449 return choice[cmd] |
450 |
450 |
451 if len(choice) > 1: |
451 if len(choice) > 1: |
452 clist = choice.keys() |
452 clist = sorted(choice) |
453 clist.sort() |
|
454 raise error.AmbiguousCommand(cmd, clist) |
453 raise error.AmbiguousCommand(cmd, clist) |
455 |
454 |
456 if choice: |
455 if choice: |
457 return choice.values()[0] |
456 return choice.values()[0] |
458 |
457 |