summaryrefslogtreecommitdiffstats
path: root/Lib/email/message.py
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-07-11 14:33:51 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-07-11 14:33:51 (GMT)
commit74b8d333b708e2f029f60a06bbb5abb31199426f (patch)
tree395efe22fbfc0239eb794063d4add723a714c5cf /Lib/email/message.py
parentc91cbb948a223f0921300dc7b4f4b762b60420f3 (diff)
downloadcpython-74b8d333b708e2f029f60a06bbb5abb31199426f.zip
cpython-74b8d333b708e2f029f60a06bbb5abb31199426f.tar.gz
cpython-74b8d333b708e2f029f60a06bbb5abb31199426f.tar.bz2
#2622 Import errors in email.message, from a py2app standalone application.
Patch by Mads Kiilerich, Reviewed by Barry Warsaw.
Diffstat (limited to 'Lib/email/message.py')
-rw-r--r--Lib/email/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/message.py b/Lib/email/message.py
index 23cedf6..129f4ba 100644
--- a/Lib/email/message.py
+++ b/Lib/email/message.py
@@ -129,7 +129,7 @@ class Message:
"From ". For more flexibility, use the flatten() method of a
Generator instance.
"""
- from email.Generator import Generator
+ from email.generator import Generator
fp = StringIO()
g = Generator(fp)
g.flatten(self, unixfrom=unixfrom)
@@ -787,4 +787,4 @@ class Message:
return [part.get_content_charset(failobj) for part in self.walk()]
# I.e. def walk(self): ...
- from email.Iterators import walk
+ from email.iterators import walk