mirror of
https://github.com/django/django.git
synced 2024-12-26 02:56:25 +00:00
Fixed #15520 -- Fixed incompatibility with email module shipped with Python 2.4 introduced in r15669. Thanks dobcey for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
13838fb233
commit
b1a0ad0079
@ -3,7 +3,10 @@ import os
|
|||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
from email import Charset, Encoders
|
from email import Charset, Encoders
|
||||||
|
try:
|
||||||
from email.generator import Generator
|
from email.generator import Generator
|
||||||
|
except ImportError:
|
||||||
|
from email.Generator import Generator # TODO: Remove when remove Python 2.4 support
|
||||||
from email.MIMEText import MIMEText
|
from email.MIMEText import MIMEText
|
||||||
from email.MIMEMultipart import MIMEMultipart
|
from email.MIMEMultipart import MIMEMultipart
|
||||||
from email.MIMEBase import MIMEBase
|
from email.MIMEBase import MIMEBase
|
||||||
|
Loading…
Reference in New Issue
Block a user