Skip to content

Commit ff6c7ee

Browse files
committed
Simplify the __unicode__() method.
1 parent 0ddd814 commit ff6c7ee

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

embedly/models.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,4 @@ def __str__(self):
6767
return self.__unicode__().encode("utf-8")
6868

6969
def __unicode__(self):
70-
r = '<%s ' % self.method.title()
71-
72-
if self.original_url:
73-
r += self.original_url
74-
75-
r += ' >'
76-
return r
70+
return '<%s %s>' % (self.method.title(), self.original_url or "")

0 commit comments

Comments
 (0)