mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 21:14:01 +03:00
Resolve python3 linting issue
This commit is contained in:
parent
d2795dd26d
commit
2d2737f367
|
@ -79,7 +79,7 @@ class _MediaType(object):
|
|||
return 3
|
||||
|
||||
def __str__(self):
|
||||
return unicode(self).encode('utf-8')
|
||||
return self.__unicode__().encode('utf-8')
|
||||
|
||||
def __unicode__(self):
|
||||
ret = "%s/%s" % (self.main_type, self.sub_type)
|
||||
|
|
Loading…
Reference in New Issue
Block a user