(self, msg)
| 444 | self.write(self._NL) |
| 445 | |
| 446 | def _handle_text(self, msg): |
| 447 | # If the string has surrogates the original source was bytes, so |
| 448 | # just write it back out. |
| 449 | if msg._payload is None: |
| 450 | return |
| 451 | if _has_surrogates(msg._payload) and not self.policy.cte_type=='7bit': |
| 452 | if self._mangle_from_: |
| 453 | msg._payload = fcre.sub(">From ", msg._payload) |
| 454 | self._write_lines(msg._payload) |
| 455 | else: |
| 456 | super(BytesGenerator,self)._handle_text(msg) |
| 457 | |
| 458 | # Default body handler |
| 459 | _writeBody = _handle_text |
nothing calls this directly
no test coverage detected