          data = json.loads(ret.decode('utf-8'))
          self.assertEqual(data, {'key': 'string value', '2': 3})
  
      def test_render_obj_with_getitem(self):
          class DictLike(object):
              def __init__(self):
                  self._dict = {}
  
              def set(self, value):
                  self._dict = dict(value)
 
</s> remove         class MockPager(object):
 </s> add         class MockPager: </s> remove         super(APIRequestFactory, self).__init__(**defaults)
 </s> add         super().__init__(**defaults) </s> remove             data = urlparse.urlparse(data).path
 </s> add             data = parse.urlparse(data).path </s> remove     def test_unicode_repr(self):
 </s> add     def test_repr(self): </s> remove         super(LinkNode, self).__init__()
 </s> add         super().__init__()
        class DictLike:
          data = json.loads(ret.decode('utf-8'))
          self.assertEqual(data, {'key': 'string value', '2': 3})
  
      def test_render_obj_with_getitem(self):
        class DictLike:
              def __init__(self):
                  self._dict = {}
  
              def set(self, value):
                  self._dict = dict(value)
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_renderers.py