(s, output=output, lineEnd=b'\n')
| 57 | return |
| 58 | |
| 59 | def write(s, output=output, lineEnd=b'\n'): |
| 60 | # RFC 1521 requires that the line ending in a space or tab must have |
| 61 | # that trailing character encoded. |
| 62 | if s and s[-1:] in b' \t': |
| 63 | output.write(s[:-1] + quote(s[-1:]) + lineEnd) |
| 64 | elif s == b'.': |
| 65 | output.write(quote(s) + lineEnd) |
| 66 | else: |
| 67 | output.write(s + lineEnd) |
| 68 | |
| 69 | prevline = None |
| 70 | while 1: |
no test coverage detected