(self, lines)
| 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 |
no test coverage detected