From 4ec36e8f6b1cb4911458c80d8789b1452422e8c2 Mon Sep 17 00:00:00 2001 From: Vincenzo Maffione Date: Thu, 13 Apr 2017 23:25:32 +0200 Subject: model: avoid printing policies in __repr__ This makes the output unreadable --- rumba/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rumba/model.py') 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) -- cgit v1.2.3