Code

Opened 6 years ago

Closed 6 years ago

#9306 closed (invalid)

django.views.static.py import email.Utils should email.utils

Reported by: isoemail@… 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: UI/UX:

Description

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

should:

from email.utils import parsedate_tz, mktime_tz

Attachments (0)

Change History (1)

comment:1 Changed 6 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.