(cmd)
| 76 | |
| 77 | # Dereference values, i.e. cmd.val == $usr => cmd.val == <actual value of usr> |
| 78 | def derefVals(cmd): |
| 79 | for key in dir(cmd): |
| 80 | if not key.startswith("__") and key != 'varname': |
| 81 | val = getattr(cmd, key) |
| 82 | if type(val) is str and val.startswith("$"): |
| 83 | setattr(cmd, key, getVar(val)) |
| 84 | return cmd |
| 85 | |
| 86 | |
| 87 | # Constructing individual messages |
no test coverage detected
searching dependent graphs…