mirror of
https://github.com/kennethreitz-archive/python-convore.git
synced 2026-06-05 23:40:18 +00:00
changed __str__ to __repr__ and created simpler version of __str__
This commit is contained in:
+4
-1
@@ -19,9 +19,12 @@ class ConvoreTopic(object):
|
||||
self.id = t['id']
|
||||
|
||||
def __str__(self):
|
||||
return "<ConvoreTopic id='%s'>" % self.id
|
||||
|
||||
def __repr__(self):
|
||||
return ",".join(map(str,(
|
||||
self.name,
|
||||
"(%s)" % self.creator,
|
||||
self.creator,
|
||||
self.url,
|
||||
self.slug,
|
||||
self.date_latest_message,
|
||||
|
||||
Reference in New Issue
Block a user