summaryrefslogtreecommitdiff
path: root/deprecation.py
diff options
context:
space:
mode:
Diffstat (limited to 'deprecation.py')
-rw-r--r--deprecation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deprecation.py b/deprecation.py
index b103092..ef7dfa0 100644
--- a/deprecation.py
+++ b/deprecation.py
@@ -32,7 +32,7 @@ def class_renamed(old_name, new_class, message=None):
"""
clsdict = {}
if message is None:
- message = '%s is deprecated' % old_name
+ message = '%s is deprecated, use %s' % (old_name, new_class.__name__)
clsdict['__deprecation_warning__'] = message
try:
# new-style class