DEPRECATED: Raw print to sys.__stderr__, otherwise identical interface to print().
(*args, **kw)
| 228 | |
| 229 | @undoc |
| 230 | def raw_print_err(*args, **kw): |
| 231 | """DEPRECATED: Raw print to sys.__stderr__, otherwise identical interface to print().""" |
| 232 | warn("IPython.utils.io.raw_print_err has been deprecated since IPython 7.0", DeprecationWarning, stacklevel=2) |
| 233 | |
| 234 | print(*args, sep=kw.get('sep', ' '), end=kw.get('end', '\n'), |
| 235 | file=sys.__stderr__) |
| 236 | sys.__stderr__.flush() |
| 237 | |
| 238 | # used by IPykernel <- 4.9. Removed during IPython 7-dev period and re-added |
| 239 | # Keep for a version or two then should remove |