(self, msg)
| 170 | return getattr(self.stdout, attr) |
| 171 | |
| 172 | def write(self, msg): |
| 173 | # comment out the next line if you don't want to write to stdout |
| 174 | self.stdout.write(msg) |
| 175 | self.file.write(msg) |
| 176 | self.file.flush() |
| 177 | |
| 178 | def flush(self): |
| 179 | # comment out the next line if you don't want to write to stdout |