Skip to content

Commit fe96a1b

Browse files
authored
Refine deprecation error messages. (#1334)
Knowing since when is useful.
1 parent 10c044c commit fe96a1b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

ipykernel/datapub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from jupyter_client.session import Session, extract_header
2121

2222
warnings.warn(
23-
"ipykernel.datapub is deprecated. It has moved to ipyparallel.datapub",
23+
"ipykernel.datapub is deprecated since ipykernel 4.3.0 (2016). It has moved to ipyparallel.datapub",
2424
DeprecationWarning,
2525
stacklevel=2,
2626
)
@@ -73,7 +73,7 @@ def publish_data(data):
7373
The data to be published. Think of it as a namespace.
7474
"""
7575
warnings.warn(
76-
"ipykernel.datapub is deprecated. It has moved to ipyparallel.datapub",
76+
"ipykernel.datapub is deprecated since ipykernel 4.3.0 (2016). It has moved to ipyparallel.datapub",
7777
DeprecationWarning,
7878
stacklevel=2,
7979
)

ipykernel/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from zmq.log.handlers import PUBHandler
66

77
warnings.warn(
8-
"ipykernel.log is deprecated. It has moved to ipyparallel.engine.log",
8+
"ipykernel.log is deprecated since ipykernel 4.3.0 (2016). It has moved to ipyparallel.engine.log",
99
DeprecationWarning,
1010
stacklevel=2,
1111
)

ipykernel/pickleutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from traitlets.utils.importstring import import_item
2121

2222
warnings.warn(
23-
"ipykernel.pickleutil is deprecated. It has moved to ipyparallel.",
23+
"ipykernel.pickleutil is deprecated since IPykernel 4.3.0 (2016). It has moved to ipyparallel.",
2424
DeprecationWarning,
2525
stacklevel=2,
2626
)

ipykernel/serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from jupyter_client.session import MAX_BYTES, MAX_ITEMS
3636

3737
warnings.warn(
38-
"ipykernel.serialize is deprecated. It has moved to ipyparallel.serialize",
38+
"ipykernel.serialize is deprecated since ipykernel 4.3.0 (2016). It has moved to ipyparallel.serialize",
3939
DeprecationWarning,
4040
stacklevel=2,
4141
)

0 commit comments

Comments
 (0)