  """
  Pagination serializers determine the structure of the output that should
  be used for paginated responses.
  """
  from __future__ import unicode_literals
  
  from base64 import b64decode, b64encode
  from collections import OrderedDict, namedtuple
  
  from django.core.paginator import InvalidPage
  from django.core.paginator import Paginator as DjangoPaginator
 
</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  </s> remove from __future__ import unicode_literals

 </s> add 
  """
  Pagination serializers determine the structure of the output that should
  be used for paginated responses.
  """


  from base64 import b64decode, b64encode
  from collections import OrderedDict, namedtuple
  
  from django.core.paginator import InvalidPage
  from django.core.paginator import Paginator as DjangoPaginator
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/pagination.py