diff options
| author | Vincenzo Maffione <v.maffione@gmail.com> | 2017-04-13 23:25:32 +0200 |
|---|---|---|
| committer | Vincenzo Maffione <v.maffione@gmail.com> | 2017-04-13 23:25:32 +0200 |
| commit | 4ec36e8f6b1cb4911458c80d8789b1452422e8c2 (patch) | |
| tree | b545f53ee6bdbaccbb7441e0c03a5ed71401df2d | |
| parent | 17f8e41dc79dbc452a7bfa87717a0ca878eb773e (diff) | |
| download | rumba-4ec36e8f6b1cb4911458c80d8789b1452422e8c2.tar.gz rumba-4ec36e8f6b1cb4911458c80d8789b1452422e8c2.zip | |
model: avoid printing policies in __repr__
This makes the output unreadable
| -rw-r--r-- | rumba/model.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rumba/model.py b/rumba/model.py index c2c4cfa..613a6be 100644 --- a/rumba/model.py +++ b/rumba/model.py @@ -119,7 +119,7 @@ class NormalDIF(DIF): def del_policy(self, comp): del self.policies[comp] - def __repr__(self): + def show(self): s = DIF.__repr__(self) for comp, pol in self.policies.items(): s += "\n Component %s has policy %s" % (comp, pol) |
