Skip to content

Commit af5ba66

Browse files
Carreaublink1073
andauthored
Update deprecation warning (#1148)
Co-authored-by: Steven Silvester <[email protected]>
1 parent 7e26967 commit af5ba66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jupyter_server/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,11 @@ def _check_pid_posix(pid):
181181

182182

183183
async def run_sync_in_loop(maybe_async):
184-
"""**DEPRECATED**: Use ``ensure_async`` instead."""
184+
"""**DEPRECATED**: Use ``ensure_async`` from jupyter_core instead."""
185185
warnings.warn(
186-
"run_sync_in_loop is deprecated, use 'ensure_async'", DeprecationWarning, stacklevel=2
186+
"run_sync_in_loop is deprecated since Jupyter Server 2.0, use 'ensure_async' from jupyter_core instead",
187+
DeprecationWarning,
188+
stacklevel=2,
187189
)
188190
return ensure_async(maybe_async)
189191

0 commit comments

Comments
 (0)