7 def __init__(self, out=sys.stdout):
9 self.output = out.write
10 self.boundary = mimetools.choose_boundary()
15 Content-type: multipart/x-mixed-replace;boundary=%s
20 def next(self, content_type="text/html"):
24 """ % (self.boundary, content_type))
28 self.output("--%s--" % self.boundary)