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