Ejemplo n.º 1
0
 def __repr__ (self, *args, **kw) :
     return super().__repr__(pretty_string(self.url), text=pretty_truncate(self.text), *args, **kw)
Ejemplo n.º 2
0
 def __repr__ (self, *args, **kw) :
     return super().__repr__(pretty_truncate(self.string.replace('\n', ' '), 35), *args, **kw)