Home | History | Annotate | Download | only in Lib

Lines Matching defs:write

45     """Read 'input', apply quoted-printable encoding, and write to 'output'.
56 output.write(odata)
59 def write(s, output=output, lineEnd=b'\n'):
63 output.write(s[:-1] + quote(s[-1:]) + lineEnd)
65 output.write(quote(s) + lineEnd)
67 output.write(s + lineEnd)
89 # First, write out the previous line
91 write(prevline)
98 write(thisline[:MAXLINESIZE-1], lineEnd=b'=\n')
100 # Write out the current line
102 # Write out the last line, without a trailing newline
104 write(prevline, lineEnd=stripped)
118 """Read 'input', apply quoted-printable decoding, and write to 'output'.
125 output.write(odata)
155 output.write(new + b'\n')
158 output.write(new)
225 sys.stderr.write("%s: can't open (%s)\n" % (file, msg))