MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / write

Function write

tools/python-3.11.9-amd64/Lib/quopri.py:59–67  ·  view source on GitHub ↗
(s, output=output, lineEnd=b'\n')

Source from the content-addressed store, hash-verified

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:

Callers 15

mainFunction · 0.70
demo1Function · 0.70
demo2Function · 0.70
encodeFunction · 0.70
commit_frameMethod · 0.70
write_large_bytesMethod · 0.70
save_reduceMethod · 0.70
save_tupleMethod · 0.70
_batch_appendsMethod · 0.70
_batch_setitemsMethod · 0.70
save_setMethod · 0.70
save_frozensetMethod · 0.70

Calls 2

quoteFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected