clean up unnecessary usage of the six library (awx only supports py3)

This commit is contained in:
Ryan Petrello
2019-01-24 17:57:08 -05:00
parent 68950d56ca
commit daeeaf413a
58 changed files with 238 additions and 311 deletions

View File

@@ -5,7 +5,6 @@
import urllib.parse
# Six
import six
# Django
from django.conf import settings
@@ -83,7 +82,7 @@ class SocialAuthMiddleware(SocialAuthExceptionMiddleware):
return redirect(url)
def get_message(self, request, exception):
msg = six.text_type(exception)
msg = str(exception)
if msg and msg[-1] not in '.?!':
msg = msg + '.'
return msg