              'message': 'Request was throttled.', 'code': 'throttled'}
  
          exception = Throttled(wait=2)
          assert exception.get_full_details() == {
              'message': 'Request was throttled. Expected available in {} seconds.'.format(2 if six.PY3 else 2.),
              'code': 'throttled'}
  
          exception = Throttled(wait=2, detail='Slow down!')
          assert exception.get_full_details() == {
              'message': 'Slow down! Expected available in {} seconds.'.format(2 if six.PY3 else 2.),
 
</s> remove             'message': 'Slow down! Expected available in {} seconds.'.format(2 if six.PY3 else 2.),
 </s> add             'message': 'Slow down! Expected available in {} seconds.'.format(2), </s> remove                 'Invalid data. Expected a dictionary, but got %s.' % six.text_type.__name__
 </s> add                 'Invalid data. Expected a dictionary, but got str.', </s> remove         assert serializer.errors == {'target': ['Incorrect type. Expected pk value, received %s.' % six.text_type.__name__]}
 </s> add         assert serializer.errors == {'target': ['Incorrect type. Expected pk value, received str.']} </s> remove         return super(URLPathVersioning, self).reverse(
 </s> add         return super().reverse( </s> remove             for name, value in six.iteritems(headers):
 </s> add             for name, value in headers.items():
            'message': 'Request was throttled. Expected available in {} seconds.'.format(2),
              'message': 'Request was throttled.', 'code': 'throttled'}
  
          exception = Throttled(wait=2)
          assert exception.get_full_details() == {
            'message': 'Request was throttled. Expected available in {} seconds.'.format(2),
              'code': 'throttled'}
  
          exception = Throttled(wait=2, detail='Slow down!')
          assert exception.get_full_details() == {
              'message': 'Slow down! Expected available in {} seconds.'.format(2 if six.PY3 else 2.),
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_exceptions.py