Get the arguments for the current task
(task)
| 17 | |
| 18 | |
| 19 | def args(task): |
| 20 | """Get the arguments for the current task""" |
| 21 | |
| 22 | if istask(task): |
| 23 | return task[1:] |
| 24 | elif isinstance(task, list): |
| 25 | return task |
| 26 | else: |
| 27 | return () |
| 28 | |
| 29 | |
| 30 | class Traverser: |