summaryrefslogtreecommitdiff
path: root/deprecation.py
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2008-07-14 20:10:00 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2008-07-14 20:10:00 +0200
commit93ae11ba36e2a59e8d85c8dba4b8bde5a28ca206 (patch)
treecd39aed3f925679bc8a19676ce440703dcd0f6c5 /deprecation.py
parentaab929e273a41a188a244b5d2c8b3e53408172ab (diff)
downloadlogilab-common-93ae11ba36e2a59e8d85c8dba4b8bde5a28ca206.tar.gz
improve doc for better epydoc generation (again).
Diffstat (limited to 'deprecation.py')
-rw-r--r--deprecation.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/deprecation.py b/deprecation.py
index c7ffe59..b103092 100644
--- a/deprecation.py
+++ b/deprecation.py
@@ -61,9 +61,10 @@ def class_moved(new_class, old_name=None, message=None):
def deprecated_function(new_func, message=None):
- """creates a function which fires a DeprecationWarning when used
+ """Creates a function which fires a DeprecationWarning when used.
- For example, if <bar> is deprecated in favour of <foo> :
+ For example, if <bar> is deprecated in favour of <foo>:
+
>>> bar = deprecated_function(foo, 'bar is deprecated')
>>> bar()
sample.py:57: DeprecationWarning: bar is deprecated