summaryrefslogtreecommitdiff
path: root/Lib/_pyio.py
diff options
context:
space:
mode:
authorMarcin Niemira <marcin.niemira@gmail.com>2019-04-22 21:13:51 +1000
committerInada Naoki <songofacandy@gmail.com>2019-04-22 20:13:51 +0900
commitab86521a9d9999731e39bd9056420bb7774fd144 (patch)
tree048444ecc00f5ec674a802b797d94ec52d669a68 /Lib/_pyio.py
parent662ebd2ab2047aeae9689ad254b39915c38069fd (diff)
downloadcpython-git-ab86521a9d9999731e39bd9056420bb7774fd144.tar.gz
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 e868fdc7cb..af2ce30c27 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)