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

Method writelines

tools/python-3.11.9-amd64/Lib/_pyio.py:610–618  ·  view source on GitHub ↗

Write a list of lines to the stream. Line separators are not added, so it is usual for each of the lines provided to have a line separator at the end.

(self, lines)

Source from the content-addressed store, hash-verified

608 return lines
609
610 def writelines(self, lines):
611 """Write a list of lines to the stream.
612
613 Line separators are not added, so it is usual for each of the lines
614 provided to have a line separator at the end.
615 """
616 self._checkClosed()
617 for line in lines:
618 self.write(line)
619
620io.IOBase.register(IOBase)
621

Callers

nothing calls this directly

Calls 2

_checkClosedMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected