MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / writelines

Method writelines

gridfs/synchronous/grid_file.py:1407–1413  ·  view source on GitHub ↗

Write a sequence of strings to the file. Does not add separators.

(self, sequence: Iterable[Any])

Source from the content-addressed store, hash-verified

1405 self._buffer.write(to_write)
1406
1407 def writelines(self, sequence: Iterable[Any]) -> None:
1408 """Write a sequence of strings to the file.
1409
1410 Does not add separators.
1411 """
1412 for line in sequence:
1413 self.write(line)
1414
1415 def writeable(self) -> bool:
1416 return True

Callers 3

test_write_linesMethod · 0.95
process_filesFunction · 0.45
process_fileFunction · 0.45

Calls 1

writeMethod · 0.95

Tested by 2

test_write_linesMethod · 0.76
process_fileFunction · 0.36