  from django.conf import settings
  from django.core.exceptions import ImproperlyConfigured
  from django.core.mail.backends.console import \
      EmailBackend as ConsoleEmailBackend
  from django.utils import six
  
  
  class EmailBackend(ConsoleEmailBackend):
      def __init__(self, *args, **kwargs):
          self._fname = None
 
</s> remove from django.utils import six, timezone
 </s> add from django.utils import timezone </s> remove from django.utils import lru_cache, six
 </s> add from django.utils import lru_cache </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add 
  from django.conf import settings
  from django.core.exceptions import ImproperlyConfigured
  from django.core.mail.backends.console import \
      EmailBackend as ConsoleEmailBackend

  
  
  class EmailBackend(ConsoleEmailBackend):
      def __init__(self, *args, **kwargs):
          self._fname = None
keep keep keep keep replace keep keep keep keep keep
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
django/core/mail/backends/filebased.py