diff options
author | sylvain thenault <sylvain.thenault@logilab.fr> | 2009-02-26 12:20:06 +0100 |
---|---|---|
committer | sylvain thenault <sylvain.thenault@logilab.fr> | 2009-02-26 12:20:06 +0100 |
commit | 51ce9347e7fe2bc91ac1c2b17887f9318d348d50 (patch) | |
tree | 4b7cb8c4a0440d83aa11e92787835d80a632a3f7 | |
parent | 58865a576f2cd82a46ef88c3937351912e9073dc (diff) | |
download | logilab-common-51ce9347e7fe2bc91ac1c2b17887f9318d348d50.tar.gz |
nicer message
-rw-r--r-- | deprecation.py | 2 |
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 |