Opened 10 years ago

Closed 10 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: no UI/UX: no


/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 10 years ago by Malcolm Tredinnick

Resolution: invalid
Status: newclosed

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