Opened 16 years ago
Closed 16 years ago
#9306 closed (invalid)
django.views.static.py import email.Utils should email.utils
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | 1.0 |
Severity: | Keywords: | django.views.static.py django.views.static.py 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 |
Description
/django/views/static.py : line 12 :
from email.Utils import parsedate_tz, mktime_tz
should:
from email.utils import parsedate_tz, mktime_tz
Note:
See TracTickets
for help on using tickets.
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.