def writeline_if_not_none(fout, data):
    '\n    Write one line to the specified file if data is not None.\n\n    @param fout: the file object to write line in\n    @param data: the data to write as line\n    '
    if (data is not None):
        fout.write((str(data) + '\n'))
Write one line to the specified file if data is not None.

@param fout: the file object to write line in
@param data: the data to write as line
def writeline_if_not_none(fout, data):
    '\n    Write one line to the specified file if data is not None.\n\n    @param fout: the file object to write line in\n    @param data: the data to write as line\n    '
    if (data is not None):
        fout.write((str(data) + '\n'))