      router = DefaultRouter()
      router.register(r'users', UserViewSet, 'user')
      urlpatterns = router.urls
  """
  from __future__ import unicode_literals
  
  from collections import OrderedDict
  from functools import update_wrapper
  from inspect import getmembers
  
  from django.urls import NoReverseMatch
 
</s> remove from __future__ import unicode_literals

 </s> add  </s> remove from __future__ import unicode_literals

 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from __future__ import unicode_literals

 </s> add  </s> remove from __future__ import unicode_literals

 </s> add 
      router = DefaultRouter()
      router.register(r'users', UserViewSet, 'user')
      urlpatterns = router.urls
  """


  from collections import OrderedDict
  from functools import update_wrapper
  from inspect import getmembers
  
  from django.urls import NoReverseMatch
keep keep keep keep replace replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/viewsets.py