  from django.contrib.admin import site
  from django.contrib.auth.models import User
  from django.core.management import CommandError, call_command
  from django.test import TestCase
  from django.utils.six import StringIO
  
  from rest_framework.authtoken.admin import TokenAdmin
  from rest_framework.authtoken.management.commands.drf_create_token import \
      Command as AuthTokenCommand
  from rest_framework.authtoken.models import Token
 
</s> remove from __future__ import unicode_literals
 </s> add import io </s> remove from django.utils import six
 </s> add  </s> remove from django.utils.six import StringIO
 </s> add  </s> remove from __future__ import unicode_literals

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

 </s> add 
  from django.contrib.admin import site
  from django.contrib.auth.models import User
  from django.core.management import CommandError, call_command
  from django.test import TestCase

  
  from rest_framework.authtoken.admin import TokenAdmin
  from rest_framework.authtoken.management.commands.drf_create_token import \
      Command as AuthTokenCommand
  from rest_framework.authtoken.models import Token
keep keep keep keep 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> 
tests/test_authtoken.py