def __init__(self, stream, boundary): self.stream = BufferedStream(stream) self.boundary = "--" + boundary self.first = True