Skip to content

Commit

Permalink
Add more descriptive deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Dec 3, 2016
1 parent ecf64a3 commit e182fb9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions chatterbot/logic/approximate_sentence_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def __init__(self, **kwargs):

warnings.warn(
'The ApproximateSentenceMatchAdapter is deprecated. ' +
'See http://chatterbot.readthedocs.io/en/latest/logic/index.html#best-match-adapter ' +
'for details on how to update your code.',
'Use "chatterbot.logic.BestMatch" response_selection_method="chatterbot.conversation.comparisons.jaccard_similarity" instead.',
DeprecationWarning
)
3 changes: 1 addition & 2 deletions chatterbot/logic/closest_meaning.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def __init__(self, **kwargs):

warnings.warn(
'The ClosestMeaningAdapter is deprecated. ' +
'See http://chatterbot.readthedocs.io/en/latest/logic/index.html#best-match-adapter ' +
'for details on how to update your code.',
'Use "chatterbot.logic.BestMatch" with response_selection_method="chatterbot.conversation.comparisons.synset_distance" instead.',
DeprecationWarning
)
3 changes: 1 addition & 2 deletions chatterbot/logic/sentiment_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def __init__(self, **kwargs):

warnings.warn(
'The SentimentAdapter is deprecated. ' +
'See http://chatterbot.readthedocs.io/en/latest/logic/index.html#best-match-adapter ' +
'for details on how to update your code.',
'Use "chatterbot.logic.BestMatch" response_selection_method="chatterbot.conversation.comparisons.sentiment_comparison" instead.',
DeprecationWarning
)

0 comments on commit e182fb9

Please sign in to comment.