  class LinkNode(OrderedDict):
      def __init__(self):
          self.links = []
          self.methods_counter = Counter()
          super(LinkNode, self).__init__()
  
      def get_available_key(self, preferred_key):
          if preferred_key not in self:
              return preferred_key
  
 
</s> remove class BaseRouter(six.with_metaclass(RenameRouterMethods)):
 </s> add class BaseRouter(metaclass=RenameRouterMethods): </s> remove         super(AutoSchema, self).__init__()
 </s> add         super().__init__() </s> remove         class MockPager(object):
 </s> add         class MockPager: </s> remove         class DictLike(object):
 </s> add         class DictLike: </s> remove     def test_unicode_repr(self):
 </s> add     def test_repr(self):
        super().__init__()
  class LinkNode(OrderedDict):
      def __init__(self):
          self.links = []
          self.methods_counter = Counter()
        super().__init__()
  
      def get_available_key(self, preferred_key):
          if preferred_key not in self:
              return preferred_key
  
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> 
rest_framework/schemas/generators.py