Skip to content

Commit

Permalink
remove raw_print and raw_print_err deprecated since IPython 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Dec 10, 2024
1 parent a32b2ff commit 0bee99f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions IPython/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,3 @@ def temp_pyfile(src, ext='.py'):
f.write(src)
f.flush()
return fname


@undoc
def raw_print(*args, **kw):
"""DEPRECATED: Raw print to sys.__stdout__, otherwise identical interface to print()."""
warn("IPython.utils.io.raw_print has been deprecated since IPython 7.0", DeprecationWarning, stacklevel=2)

print(*args, sep=kw.get('sep', ' '), end=kw.get('end', '\n'),
file=sys.__stdout__)
sys.__stdout__.flush()

@undoc
def raw_print_err(*args, **kw):
"""DEPRECATED: Raw print to sys.__stderr__, otherwise identical interface to print()."""
warn("IPython.utils.io.raw_print_err has been deprecated since IPython 7.0", DeprecationWarning, stacklevel=2)

print(*args, sep=kw.get('sep', ' '), end=kw.get('end', '\n'),
file=sys.__stderr__)
sys.__stderr__.flush()

0 comments on commit 0bee99f

Please sign in to comment.