(self, x)
| 118 | self.silent = silent |
| 119 | |
| 120 | def write(self, x): |
| 121 | if not self.silent: |
| 122 | if x.endswith("\n"): |
| 123 | old_f.write(x.replace("\n", " [{}]\n".format(str(datetime.now().strftime("%d/%m %H:%M:%S"))))) |
| 124 | else: |
| 125 | old_f.write(x) |
| 126 | |
| 127 | def flush(self): |
| 128 | old_f.flush() |