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