Lines Matching refs:self
40 def __init__(self, filename): argument
41 super(ClosingFileHandler, self).__init__()
42 self.filename = os.path.abspath(filename)
43 self.setStream(None)
45 def emit(self, record): argument
46 with open(self.filename, "a") as fp:
47 self.setStream(fp)
48 super(ClosingFileHandler, self).emit(record)
49 self.setStream(None)
51 def setStream(self, stream): argument
52 setStream = getattr(super(ClosingFileHandler, self), 'setStream', None)
55 if stream is self.stream:
58 result = self.stream
59 self.acquire()
61 self.flush()
62 self.stream = stream
64 self.release()
68 def __init__(self, data_folder): argument
69 self.data_folder = data_folder
71 def get_test_data(self, test_number): argument
73 filename = os.path.join(self.data_folder,