Skip to content

Commit f65a701

Browse files
committed
Remove EncodedFile.writelines
This is implemented by IOBase already, which additionally checks if the stream is not closed, and calls `write` per line. Ref/via: pytest-dev#6558 (comment)
1 parent 2e8f7ef commit f65a701

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/_pytest/capture.py

-4
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,6 @@ def write(self, obj):
429429
)
430430
return self.buffer.write(obj)
431431

432-
def writelines(self, linelist):
433-
data = "".join(linelist)
434-
self.write(data)
435-
436432
@property
437433
def name(self):
438434
"""Ensure that file.name is a string."""

0 commit comments

Comments
 (0)