summaryrefslogtreecommitdiffstats
path: root/Lib/_pyio.py
diff options
context:
space:
mode:
authorMarcin Niemira <marcin.niemira@gmail.com>2019-04-22 11:13:51 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-04-22 11:13:51 (GMT)
commitab86521a9d9999731e39bd9056420bb7774fd144 (patch)
tree048444ecc00f5ec674a802b797d94ec52d669a68 /Lib/_pyio.py
parent662ebd2ab2047aeae9689ad254b39915c38069fd (diff)
downloadcpython-ab86521a9d9999731e39bd9056420bb7774fd144.zip
cpython-ab86521a9d9999731e39bd9056420bb7774fd144.tar.gz
cpython-ab86521a9d9999731e39bd9056420bb7774fd144.tar.bz2
bpo-36523: Add docstring to io.IOBase.writelines (GH-12683)
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r--Lib/_pyio.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py
index e868fdc..af2ce30 100644
--- a/Lib/_pyio.py
+++ b/Lib/_pyio.py
@@ -551,6 +551,11 @@ class IOBase(metaclass=abc.ABCMeta):
return lines
def writelines(self, lines):
+ """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._checkClosed()
for line in lines:
self.write(line)