mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-28 13:20:14 +08:00
Make deprecation warning in doc string bold
This commit is contained in:
1 parent
a0d9d3f213
commit
332c21f979
1 file changed
+1
-1
@@ -44,7 +44,7 @@ class deprecated(object):
|
||||
return func(*args, **kwargs)
|
||||
|
||||
# modify doc string to display deprecation warning
|
||||
doc = 'Deprecated function.' + alt_msg
|
||||
doc = '**Deprecated function**.' + alt_msg
|
||||
if wrapped.__doc__ is None:
|
||||
wrapped.__doc__ = doc
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user