(rout)
| 726 | |
| 727 | |
| 728 | def getargs(rout): |
| 729 | sortargs, args = [], [] |
| 730 | if 'args' in rout: |
| 731 | args = rout['args'] |
| 732 | if 'sortvars' in rout: |
| 733 | for a in rout['sortvars']: |
| 734 | if a in args: |
| 735 | sortargs.append(a) |
| 736 | for a in args: |
| 737 | if a not in sortargs: |
| 738 | sortargs.append(a) |
| 739 | else: |
| 740 | sortargs = rout['args'] |
| 741 | return args, sortargs |
| 742 | |
| 743 | |
| 744 | def getargs2(rout): |