示例#1
0
 def __str__(self):
     """Return notifications as string"""
     string = "Notification subject: %s (%s)\n%s"
     return string % (self.subject, self.status, emoji_remove(self.body))
示例#2
0
文件: yak.py 项目: Yakathon/YackRank
 def __str__(self):
     """Return Yak as string"""
     string = "%s (%d upvotes)"
     message = helper.emoji_remove(self.message)
     return string % (message, self.likes)
示例#3
0
 def __str__(self):
     """Return comment as string"""
     return "%s (%d)" % (helper.emoji_remove(self.comment), self.likes)
示例#4
0
 def __str__(self):
     """Return Yak as string"""
     string = "%s (%d upvotes)"
     message = helper.emoji_remove(self.message)
     return string % (message, self.likes)
示例#5
0
 def __str__(self):
     """Return notifications as string"""
     string = "Notification subject: %s (%s)\n%s"
     return string % (self.subject, self.status, emoji_remove(self.body))