Skip to content

Commit

Permalink
Simplified the unicode method on Mention so any crazy text that comes…
Browse files Browse the repository at this point in the history
… back won't weird out the shell.
  • Loading branch information
palewire committed Apr 26, 2011
1 parent 005280a commit f56e2d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions documentcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,7 @@ class Mention(BaseAPIObject):
A mention of a search found in the document.
"""
def __unicode__(self):
return unicode("%s: %s" % (self.page, self.text[:50]))


return unicode("Page %s" % (self.page))


class Project(BaseAPIObject):
Expand Down

0 comments on commit f56e2d1

Please sign in to comment.