Changeset View
Changeset View
Standalone View
Standalone View
wallace/module_gpgencrypt.py
Show All 16 Lines | |||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
# | # | ||||
import os | import os | ||||
import tempfile | import tempfile | ||||
import time | import time | ||||
from email import message_from_string | from email import message_from_string | ||||
from email.MIMEBase import MIMEBase | from email.mime.base import MIMEBase | ||||
from email.MIMEText import MIMEText | from email.mime.text import MIMEText | ||||
from email.parser import Parser | from email.parser import Parser | ||||
from email.utils import formataddr | from email.utils import formataddr | ||||
from email.utils import getaddresses | from email.utils import getaddresses | ||||
import email.mime.application | import email.mime.application | ||||
import email.mime.multipart | import email.mime.multipart | ||||
sicherha: `email.mime.base.MIMEBase` and `email.mime.text.MIMEText` are both available in Python 2.7 - we… | |||||
import email.mime.text | import email.mime.text | ||||
import email.encoders | import email.encoders | ||||
import gnupg | import gnupg | ||||
from . import modules | from . import modules | ||||
import pykolab | import pykolab | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |
email.mime.base.MIMEBase and email.mime.text.MIMEText are both available in Python 2.7 - we can drop the try and consistently use the new module names.