(self, x)
| 151 | self.silent = silent |
| 152 | |
| 153 | def write(self, x): |
| 154 | if not self.silent: |
| 155 | if x.endswith("\n"): |
| 156 | old_f.write(x.replace("\n", " [{}]\n".format(str(datetime.now().strftime("%d/%m %H:%M:%S"))))) |
| 157 | else: |
| 158 | old_f.write(x) |
| 159 | |
| 160 | def flush(self): |
| 161 | old_f.flush() |
no outgoing calls
no test coverage detected