Opened 7 years ago

Closed 7 years ago

#9306 closed (invalid) import email.Utils should email.utils

Reported by: isoemail@… Owned by: nobody
Component: Uncategorized Version: 1.0
Severity: Keywords: email.Utils
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


/django/views/ : line 12 :
from email.Utils import parsedate_tz, mktime_tz


from email.utils import parsedate_tz, mktime_tz

Change History (1)

comment:1 Changed 7 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

This isn't correct. email.Utils is valid in all versions of Python from 2.3 to 2.6. email.utils doesn't exist in 2.3. The modules imported changed in later Python versions, but the older name (Utils) is still importable for backwards compatibility and we need to use it for exactly that reason.

Note: See TracTickets for help on using tickets.
Back to Top