#!/usr/bin/env python # -*- coding: iso-8859-15 -*- # Copyright (c) 2007, Corey Goldberg (corey@goldb.org) # # This file is part of PerfLog. # # PerfLog is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. class Report(object): def __init__(self, output_name): self.handle = open(output_name, 'w') self.__write_initial_html() def writeln(self, txt): self.handle.write('%s\n' % txt) def __write_initial_html(self): self.handle.write("""\ Analysis Report """) def close(self): self.handle.write("""\ """) self.handle.close()