                  return item
          raise ObjectDoesNotExist()
  
  
  class BadType(object):
      """
      When used as a lookup with a `MockQueryset`, these objects
      will raise a `TypeError`, as occurs in Django when making
      queryset lookups with an incorrect type for the lookup value.
      """
 
</s> remove @python_2_unicode_compatible
class PKOnlyObject(object):
 </s> add class PKOnlyObject: </s> remove class Hyperlink(six.text_type):
 </s> add class Hyperlink(str): </s> remove from django.utils.six.moves.urllib import parse as urlparse
 </s> add  </s> remove class ClassLookupDict(object):
 </s> add class ClassLookupDict: </s> remove                 raise ValueError('Exception raised in callable attribute "{0}"; original exception was: {1}'.format(attr, exc))
 </s> add                 raise ValueError('Exception raised in callable attribute "{}"; original exception was: {}'.format(attr, exc))
class BadType:
                  return item
          raise ObjectDoesNotExist()
  
  
class BadType:
      """
      When used as a lookup with a `MockQueryset`, these objects
      will raise a `TypeError`, as occurs in Django when making
      queryset lookups with an incorrect type for the lookup 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/utils.py