Resolve python3 linting issue

This commit is contained in:
Tom Christie 2014-08-19 14:11:26 +01:00
parent d2795dd26d
commit 2d2737f367

View File

@ -79,7 +79,7 @@ class _MediaType(object):
return 3 return 3
def __str__(self): def __str__(self):
return unicode(self).encode('utf-8') return self.__unicode__().encode('utf-8')
def __unicode__(self): def __unicode__(self):
ret = "%s/%s" % (self.main_type, self.sub_type) ret = "%s/%s" % (self.main_type, self.sub_type)