Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 524af6f commit 8ba76e8Copy full SHA for 8ba76e8
1 file changed
Lib/email/Message.py
@@ -10,9 +10,9 @@
10
from types import ListType, StringType
11
12
# Intrapackage imports
13
-import Errors
14
-import Utils
15
-import Charset
+from email import Errors
+from email import Utils
+from email import Charset
16
17
SEMISPACE = '; '
18
@@ -78,10 +78,10 @@ def as_string(self, unixfrom=0):
78
Optional `unixfrom' when true, means include the Unix From_ envelope
79
header.
80
"""
81
- from Generator import Generator
+ from email.Generator import Generator
82
fp = StringIO()
83
g = Generator(fp)
84
- g(self, unixfrom=unixfrom)
+ g.flatten(self, unixfrom=unixfrom)
85
return fp.getvalue()
86
87
def is_multipart(self):
0 commit comments