

def write(self, data, ctx):
    'Write data.\n\n    Args:\n      data: actual data yielded from handler. Type is writer-specific.\n      ctx: an instance of context.Context.\n    '
    if (ctx.get_pool('file_pool') is None):
        ctx.register_pool('file_pool', _FilePool(ctx=ctx))
    ctx.get_pool('file_pool').append(self._filename, str(data))

dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/output_writers.py FileOutputWriter.write/original