(self, stream)
| 83 | |
| 84 | @contextmanager |
| 85 | def unbuffered(self, stream): |
| 86 | stream.reconfigure(write_through=True) |
| 87 | try: |
| 88 | yield |
| 89 | finally: |
| 90 | stream.reconfigure(write_through=False) |
| 91 | |
| 92 | # In --verbose3 mode, sys.stdout and sys.stderr are captured, so we can't |
| 93 | # test them directly. Detect this mode and use some temporary streams with |