def standard_read_self(): test_data = [] fd = open(__file__, "r") for line in fd: test_data.append(line) fd.close() return test_data
def close(self): self._write() fd = getattr(self, 'frd') if fd: fd.close() fd = getattr(self, 'fwr') if fd: fd.close()