code: def end(self):
          '''
          Dump the report into the output file.
  
          If the file directory does not exists, it will be created.
          The open file is then given as parameter to :meth:`~minibench.report.FileReporter.output`.
          '''
          dirname = os.path.dirname(self.filename)
          if dirname and not os.path.exists(dirname):
              os.makedirs(dirname)
          with open(self.filename, 'w') as out:
              self.out = out
              self.output(out)
              self.out = Nonf end(self):
          '''
          Dump the report into the output file.
  
          If the file directory does not exists, it will be created.
          The open file is then given as parameter to :meth:`~minibench.report.FileReporter.output`.
          '''
          dirname = os.path.dirname(self.filename)
          if dirname and not os.path.exists(dirname):
              os.makedirs(dirname)
          with open(self.filename, 'w') as out:
              self.out = out
              self.output(out)
              self.out = None
docs: Dump the report into the output file.
  
          If the file directory does not exists, it will be created.
          The open file is then given as parameter to :meth:`~minibench.report.FileReporter.output`.