From ec5de5834b50d32cb01cb75da69d7c7a0b2b48aa Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 16 May 2013 02:44:43 +0200 Subject: [PATCH] On surcharge pas __repr__ comme des gros sales. --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 84f5bcc..ff785e6 100644 --- a/attributs.py +++ b/attributs.py @@ -206,7 +206,7 @@ class Attr(object): return self.__unicode__().encode('utf-8') def __repr__(self): - return self.__str__() + return str(self.__class__) + " : " + repr(self.value) def __unicode__(self): # XXX - Vérifier que cette méthode produit un objet parsable