mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-09 05:18:57 +08:00
Make deprecation warning in doc string bold
This commit is contained in:
@@ -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