A readline()-style interface to the parts of a multipart message.
The MultiFile class makes each part of a multipart message "feel" like
an ordinary file, as long as you use fp.readline(). Allows recursive
use, for nested multipart messages. Probably best used together
with module mimetools.
real_fp = open(...)
fp = MultiFile(real_fp)
"read some lines from fp"
"read lines from fp until it returns an empty string" (A)
if not fp.next(): break
"read remaining lines from fp until it returns an empty string"
The latter sequence may be used recursively at (A).
It is also allowed to use multiple push()...pop() sequences.
If seekable is given as 0, the class code will not do the bookeeping
it normally attempts in order to make seeks relative to the beginning of the
current file part. This may be useful when using MultiFile with a non-
seekable stream object.
|Error = 'multifile.Error'|
__file__ = '/usr/lib/python1.6/multifile.pyc'
__name__ = 'multifile'