  from __future__ import unicode_literals
  
  import pytest
  from django.test import TestCase
  
  from rest_framework import RemovedInDRF310Warning, status
  from rest_framework.authentication import BasicAuthentication
 
</s> remove import sys
 </s> add  </s> remove from __future__ import unicode_literals

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

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

 </s> add 


  import pytest
  from django.test import TestCase
  
  from rest_framework import RemovedInDRF310Warning, status
  from rest_framework.authentication import BasicAuthentication
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> 
tests/test_decorators.py