mirror of https://github.com/python/cpython.git
[Bug #817178] Fix incorrect arguments in example, noted by Terry Reedy
This commit is contained in:
parent
2389c41a10
commit
b4b9ced1b6
|
@ -46,7 +46,7 @@ instantiate a \class{Generator} instance and use its
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
from email.Generator import Generator
|
from email.Generator import Generator
|
||||||
fp = StringIO()
|
fp = StringIO()
|
||||||
g = Generator(mangle_from_=False, maxheaderlen=60)
|
g = Generator(fp, mangle_from_=False, maxheaderlen=60)
|
||||||
g.flatten(msg)
|
g.flatten(msg)
|
||||||
text = fp.getvalue()
|
text = fp.getvalue()
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
Loading…
Reference in New Issue