          class MockObject(object):
              def __init__(self, idx):
                  self.created = idx
  
          class MockQuerySet(object):
              def __init__(self, items):
                  self.items = items
  
              def filter(self, created__gt=None, created__lt=None):
                  if created__gt is not None:
 
</s> remove         super(MethodNotAllowed, self).__init__(detail, code)
 </s> add         super().__init__(detail, code) </s> remove         super(DurationField, self).__init__(**kwargs)
 </s> add         super().__init__(**kwargs) </s> remove class MockQueryset(object):
 </s> add class MockQueryset: </s> remove         super(SchemaView, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove class MockObject(object):
 </s> add class MockObject:
        class MockQuerySet:
          class MockObject(object):
              def __init__(self, idx):
                  self.created = idx
  
        class MockQuerySet:
              def __init__(self, items):
                  self.items = items
  
              def filter(self, created__gt=None, created__lt=None):
                  if created__gt is not None:
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_pagination.py