Ignore:
Timestamp:
12/07/07 10:26:36 (12 years ago)
Author:
domlowe
Message:

email package imports differ in python 2.5 and 2.4 added try except

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/mailer.py

    r2646 r2725  
    11import smtplib 
    2 from email.mime.text import MIMEText 
    3 from email.mime.multipart import MIMEMultipart 
    4 from email.MIMEBase import MIMEBase 
    5  
     2try: 
     3    #python 2.5 
     4    from email.mime.text import MIMEText 
     5    from email.mime.multipart import MIMEMultipart 
     6    from email.MIMEBase import MIMEBase 
     7except: 
     8    #python 2.4 
     9    from email import MIMEText 
     10    from email import MIMEMultipart 
     11    from email import MIMEBase 
    612 
    713debug=0 
Note: See TracChangeset for help on using the changeset viewer.