Skip to content

Commit

Permalink
Update deprecation warning (#1148)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
  • Loading branch information
Carreau and blink1073 authored Dec 22, 2022
1 parent 7e26967 commit af5ba66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jupyter_server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ def _check_pid_posix(pid):


async def run_sync_in_loop(maybe_async):
"""**DEPRECATED**: Use ``ensure_async`` instead."""
"""**DEPRECATED**: Use ``ensure_async`` from jupyter_core instead."""
warnings.warn(
"run_sync_in_loop is deprecated, use 'ensure_async'", DeprecationWarning, stacklevel=2
"run_sync_in_loop is deprecated since Jupyter Server 2.0, use 'ensure_async' from jupyter_core instead",
DeprecationWarning,
stacklevel=2,
)
return ensure_async(maybe_async)

Expand Down

0 comments on commit af5ba66

Please sign in to comment.