(self, s)
| 28 | self._stream = stream |
| 29 | |
| 30 | def write(self, s): |
| 31 | st = self._stream |
| 32 | if st is not None: |
| 33 | try: |
| 34 | st.write(s) |
| 35 | except Exception: |
| 36 | pass |
| 37 | if _logfile is not None: |
| 38 | try: |
| 39 | _logfile.write(s) |
| 40 | _logfile.flush() |
| 41 | except Exception: |
| 42 | pass |
| 43 | return len(s) |
| 44 | |
| 45 | def flush(self): |
| 46 | st = self._stream |
no test coverage detected