(self, encoding: str = 'utf-8', errors: str = 'backslashreplace', strip: bool = True)
| 299 | return True |
| 300 | |
| 301 | def decode(self, encoding: str = 'utf-8', errors: str = 'backslashreplace', strip: bool = True) -> str: |
| 302 | if not self.session: |
| 303 | raise ValueError('No session available to decode') |
| 304 | |
| 305 | val = self.session._trace_log.decode(encoding, errors=errors) |
| 306 | |
| 307 | if strip: |
| 308 | return val.strip() |
| 309 | return val |
| 310 | |
| 311 | def output(self, remove_cr: bool = True) -> bytes: |
| 312 | if not self.session: |
no outgoing calls
no test coverage detected