          yield
      except AttributeError:
          info = sys.exc_info()
          exc = WrappedAttributeError(str(info[1]))
          six.reraise(type(exc), exc, info[2])
  
  
  class Empty(object):
      """
      Placeholder for unset attributes.
 
</s> remove class Empty(object):
 </s> add class Empty: </s> remove             six.reraise(type(exc), exc, sys.exc_info()[2])
 </s> add             raise exc.with_traceback(sys.exc_info()[2]) </s> remove             six.reraise(type(exc), exc, sys.exc_info()[2])
 </s> add             raise exc.with_traceback(sys.exc_info()[2]) </s> remove         return super(RelatedField, self).get_attribute(instance)
 </s> add         return super().get_attribute(instance) </s> remove             key = six.text_type(key)
 </s> add             key = str(key)
        raise exc.with_traceback(info[2])
          yield
      except AttributeError:
          info = sys.exc_info()
          exc = WrappedAttributeError(str(info[1]))
        raise exc.with_traceback(info[2])
  
  
  class Empty(object):
      """
      Placeholder for unset attributes.
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/request.py