MCPcopy Create free account
hub / github.com/ipython/ipython / writelines

Method writelines

IPython/utils/io.py:67–73  ·  view source on GitHub ↗
(self, lines)

Source from the content-addressed store, hash-verified

65 file=sys.stderr)
66
67 def writelines(self, lines):
68 warn('IOStream is deprecated since IPython 5.0, use sys.{stdin,stdout,stderr} instead',
69 DeprecationWarning, stacklevel=2)
70 if isinstance(lines, str):
71 lines = [lines]
72 for line in lines:
73 self.write(line)
74
75 # This class used to have a writeln method, but regular files and streams
76 # in Python don't have this method. We need to keep this completely

Callers 2

_record_commitMethod · 0.80
latex_to_png_dvipngFunction · 0.80

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected