Remove deprecated __unicode__

This commit is contained in:
Sambhav Kothari
2017-04-07 01:35:08 +05:30
parent 09b3981628
commit d5ec9a9cdc

View File

@@ -193,7 +193,7 @@ class CoverArtImage:
p.append("comment=%r" % self.comment)
return "%s(%s)" % (self.__class__.__name__, ", ".join(p))
def __unicode__(self):
def __str__(self):
p = [u'Image']
if self.url is not None:
p.append(u"from %s" % self.url.toString())
@@ -203,9 +203,6 @@ class CoverArtImage:
p.append(u"and comment '%s'" % self.comment)
return u' '.join(p)
def __str__(self):
return string_(self).encode('utf-8')
def __eq__(self, other):
if self and other:
if self.types and other.types: