MCPcopy
hub / github.com/celery/celery / writelines

Method writelines

celery/utils/log.py:238–246  ·  view source on GitHub ↗

Write list of strings to file. The sequence can be any iterable object producing strings. This is equivalent to calling :meth:`write` for each string.

(self, sequence)

Source from the content-addressed store, hash-verified

236 return 0
237
238 def writelines(self, sequence):
239 # type: (Sequence[str]) -> None
240 """Write list of strings to file.
241
242 The sequence can be any iterable object producing strings.
243 This is equivalent to calling :meth:`write` for each string.
244 """
245 for part in sequence:
246 self.write(part)
247
248 def flush(self):
249 # This object is not buffered so any :meth:`flush`

Callers 1

test_logging_proxyMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by 1

test_logging_proxyMethod · 0.76