diff options
| author | Tom Christie | 2014-08-19 14:11:26 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-08-19 14:11:26 +0100 |
| commit | 2d2737f367c241c29c9c3913f2dba986c7c9a4a5 (patch) | |
| tree | 19b77e0e7b2c3559e7a427196364e7d1060b08b5 /rest_framework/utils | |
| parent | d2795dd26d7483ea0de119ae135eab0a94cf23d8 (diff) | |
| download | django-rest-framework-2d2737f367c241c29c9c3913f2dba986c7c9a4a5.tar.bz2 | |
Resolve python3 linting issue
Diffstat (limited to 'rest_framework/utils')
| -rw-r--r-- | rest_framework/utils/mediatypes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/utils/mediatypes.py b/rest_framework/utils/mediatypes.py index 727f9c19..87b3cc6a 100644 --- a/rest_framework/utils/mediatypes.py +++ b/rest_framework/utils/mediatypes.py @@ -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) |
