(self, exc)
| 117 | return self._exception |
| 118 | |
| 119 | def set_exception(self, exc): |
| 120 | if isinstance(exc, ConnectionError): |
| 121 | exc, old_exc = self._eof_exc_class(), exc |
| 122 | exc.__cause__ = old_exc |
| 123 | exc.__context__ = old_exc |
| 124 | |
| 125 | self._exception = exc |
| 126 | |
| 127 | if self._output is not None: |
| 128 | self._output.set_exception(exc) |
| 129 | self._output = None |
| 130 | self._parser = None |
| 131 | |
| 132 | def feed_data(self, data): |
| 133 | """send data to current parser or store in buffer.""" |
no outgoing calls