(self)
| 356 | self.suppress = suppress |
| 357 | |
| 358 | def __enter__(self): |
| 359 | self.orig_stream = getattr(sys, self.channel) |
| 360 | self.buffer = MyStringIO() |
| 361 | self.tee = Tee(self.buffer, channel=self.channel) |
| 362 | setattr(sys, self.channel, self.buffer if self.suppress else self.tee) |
| 363 | |
| 364 | def __exit__(self, etype, value, traceback): |
| 365 | try: |