Skip to content

Commit bb0fbdc

Browse files
committedJan 14, 2014
use warnings.warn for deprecations, not print()
1 parent e8aad50 commit bb0fbdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bokeh/plotting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def scatter(*args, **kwargs):
783783
session_objs = [] # The list of objects that need to be added
784784

785785
if "type" in kwargs:
786-
print("Keyword argument 'type' of scatter(...) is deprecated; use 'marker' instead.")
786+
warnings.warn("Keyword argument 'type' of scatter(...) is deprecated; use 'marker' instead.")
787787
kwargs.setdefault("marker", kwargs.pop("type"))
788788

789789
ds = kwargs.get("source", None)

0 commit comments

Comments
 (0)
Please sign in to comment.